Debug and optimize Mission Plan with the Profiler

Post your experiences with FreeFlyer in this forum to get feedback and support. If you're a current customer who needs support, please contact the FreeFlyer Support Team.
Technical Support Email: techsupport@ai-solutions.com Phone: +1 (301) 306-1756 Ext 2
Angel Rocha 6645752e1159d
Posts: 5
Joined: Thu May 16, 2024 2:53 am
Debug and optimize Mission Plan with the Profiler

Post by Angel Rocha 6645752e1159d »

Help File Use Profiler

The profiler reports information about how much time is spent in different sections of a Mission Plan. Profiler information is reported to a scopes file and a lines file. The profiler can help debug and optimize Mission Plans by tracking the execution time of different sections in the Mission Plan. This switch is used in conjunction with the Mission Plan switch.

The following example will run the TargetApogeeImpulsiveBurn Sample Mission Plan with the Profiler from the Windows Command Prompt and create two output files.

Example Code

Code: Select all

$ cd C:\Program Files\a.i. solutions, Inc\FreeFlyer 7.8.1.50021 (64-Bit)
$ ff -mp "C:\Users\UserName\Documents\FreeFlyer\FreeFlyer 7.8.1.50021 (64-Bit)\Sample Mission Plans\Maneuvering and Targeting\TargetApogeeImpulsiveBurn.MissionPlan" --use-profiler
Output Files
  • TargetApogeeImpulsiveBurn.MissionPlan_profile_lines.txt
  • TargetApogeeImpulsiveBurn.MissionPlan_profile_scopes.txt
Scopes & Lines Files
The Profiler creates a scopes file and a lines file. These files are written to the same directory as the Mission Plan and have the Mission Plan's full name followed by "_profile_" prepended to their names.
  • The scopes file lists information about the execution time of the Main Scope, Procedures, and Macros
  • The lines file lists information about the execution time for each line of code. The Lines file will be ordered based on line appearance in the Mission Plan as in the following example.