o
odinpkg.dev
packages / library / ota_profiller__Odin_Terminal_Auto_Profiller_Lib

ota_profiller__Odin_Terminal_Auto_Profiller_Lib

5e52c19library

A simple profiller that automatically instruments all the Odin functions of a diretory and sub diretories or a specific file name that is part of the source code path.

No license · updated 8 months ago

ota_profiller - Odin Terminal Auto Profiller Lib

A simple profiller that automatically instruments all the Odin functions of a diretory and sub diretories or a specific file name that is part of the source code path.

Description

  • The major feature of the ota_profiller over the ot_profiller is that it automatically attaches to all the running functions of the program code that have a sub string in the path that is given and that are not from the ota_profiller lib file.
  • Both profiller can have sub regions os profilling inside each function, but those have to be manually added.
  • This small lib is to be embedded on a program and stay there enabled or disabled.
  • It can be enabled or disabled with a very small hit on the overal performance.
  • It generates 2 reports:
    1. profiller_report.txt
    2. profiller_report.html ( this one has also a kind of flame graph in it )
  • It was developed and tested on Linux.
  • Note: There is a small multithreaded test example of its usage.

Images of the reports

TXT report

./images/txt_ota_profiller_report_001.png

How to compile and run

make
./ota_prof

License

MIT Open Source license

Have fun

Best regards,
Joao Carvalho