Author Topic: execution analysis - recording history  (Read 2678 times)

mr nobody 11

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
execution analysis - recording history
« on: March 03, 2023, 02:06:08 am »
Hello Dear EA users,

Currently, I am trying to generate a sequence diagram from very simple example c++ code. I managed to use the debugger, however, I cannot click on any button on Record & Analyze window. As I understood, I somehow need to manage to record so that I can create a sequence diagram from the record.

https://sparxsystems.com/enterprise_architect_user_guide/16.1/execution_analysis/buildandrun.html

I try to follow the descriptions and explanations on the above link. Since I am EA and coding novice, these are definitely not enough for me. I mean I could not manage to generate sequence diagram for a very simple code.

Can someone give me an explanation on how to record?

Thank you very much in advance,

Best

mr nobody 11

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: execution analysis - recording history
« Reply #1 on: March 03, 2023, 08:44:57 am »
Maybe a license problem? You need some high end EA for that.

q.

Takeshi K

  • EA User
  • **
  • Posts: 571
  • Karma: +35/-1
    • View Profile
Re: execution analysis - recording history
« Reply #2 on: March 03, 2023, 10:03:05 am »
IIRC the feature can be used on all editions. I guess you have not defined an Analyzer Script for the Package.

HTH,
--
t-kouno

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: execution analysis - recording history
« Reply #3 on: March 03, 2023, 10:24:18 am »
I never was fond of these "extras". For fun I enabled the Develop ribbon (took me a while to again figure out where to do that) and clicked Edit Analyzer Script. Nothing happened. Then a more intensive look at the screen revealed a tiny edge of a tiny window that had popped up almost outside the screen (absolutely genius!) which I then moved to see it. It had couple of buttons but none of them had explanations. Needles to say that none of the two non-grayed had any effect. I then read it was labeled Code Generation. Huh? I thought I was asking for just the opposite? Well, at some time another window was opened somewhere labeled Execution Analyzer. So probaly Takeshi san is right that it (at least) works for Corporate. Yes, rant aside: it probably needs a lot of reading. But was that start intuitive or motivating? Not for me. Alas, I do not care anyway. Disabling that ribbon before I forget again how.

q.

mr nobody 11

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: execution analysis - recording history
« Reply #4 on: March 03, 2023, 08:22:26 pm »
IIRC the feature can be used on all editions. I guess you have not defined an Analyzer Script for the Package.

HTH,

I have EA license and Im using EA 15.2. To be honest, I am having hard time to understand sparxsystem`s website to figure out how to create s.d from c++.

What do you mean by Analyzer Script for the package?

https://ibb.co/pz21rFj

I created model.package1 with the box checked icon. is not it the analyzer script? Then, on the debug-platform window, I choose GDB as the debugger, then I choose the package of my source-code(s.d is created from) as  the default directory, and main.exe as the application path. I save it. 

Then, I right click on the model.package1 analyzer script and click debug.

Is there any step I am missing?

mr nobody 11

mr nobody 11

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: execution analysis - recording history
« Reply #5 on: March 04, 2023, 02:38:16 am »
Now, I think I understood that I need to write the build script. However, I could not find how to write it. I have a project in C folder, a package called projects, and inside I have my source-code from which I want to create s.d.

https://ibb.co/QH5XNfz

This example code is a simple atm application where the user prompted to enter information on developer command prompt. When I run the code from vs code, it works perfectly. So I assume when I click on build in EA, it should also prompt this window for me. To do that I need to write this build script(this is my understandin, im not sure :( )

I am open to any suggestions and help. Thank you all!

jfzouain

  • EA User
  • **
  • Posts: 151
  • Karma: +6/-1
    • View Profile
Re: execution analysis - recording history
« Reply #6 on: March 05, 2023, 06:47:29 am »
Hi mr nobody 11

I have an eBook how to create Sequence Diagram and Class Diagram with EA, highly recommend it.
How I do it, I read the code and start creating the classes (if you don't have them), than drag and drop into SD and start with connection and fragments.

Look for it at Leanpub.com

https://leanpub.com/umlerpworkshop-report-sdd
Best regards

Jose Zouain