Skip to main content
Solved

Profiler Output to a File

  • June 5, 2025
  • 2 replies
  • 34 views

Can anyone tell me if there is a way to write profiler output to a file?     An external application is invoking AIMMS from the command line multiple times during its run, so it would be useful to generate this file 

Best answer by Chris Kuip

hello Tsterle,

 

You can use the functions ProfilerStart (for instance in MainInitialization) and ProfilerCollectAllData to collect the profiling information, also during a headless run.
Once collected, you can use
write <some identifiers> to file someFile.txt ;
to write the data.

For more information on the profiling functions, see https://documentation.aimms.com/functionreference/development-support/profiler-and-debugger/index.html

Does this answer your question?

With kind regards,

 

Chris

2 replies

Chris Kuip
AIMMSian
Forum|alt.badge.img+7
  • AIMMSian
  • Answer
  • June 6, 2025

hello Tsterle,

 

You can use the functions ProfilerStart (for instance in MainInitialization) and ProfilerCollectAllData to collect the profiling information, also during a headless run.
Once collected, you can use
write <some identifiers> to file someFile.txt ;
to write the data.

For more information on the profiling functions, see https://documentation.aimms.com/functionreference/development-support/profiler-and-debugger/index.html

Does this answer your question?

With kind regards,

 

Chris


  • Author
  • Explorer
  • June 9, 2025

I believe so, thank you Chris!


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator