stefanbesler / twingrind

Call-graph profiling for TwinCAT 3
GNU General Public License v3.0
24 stars 3 forks source link

Enable profiling of certain libraries #10

Closed captain-yoshi closed 10 months ago

captain-yoshi commented 10 months ago

If you are using PLC libraries you can reuse the hashmap file and enabling profiling for your libraries as well by a similar call to twingrind prepare.

Not sure how to enable profiling for my libraries.

I have my library TcRobot and my task TcRobotExamples and tried to do the following:

# prepare the task
 twingrind prepare -d /c/ws/TcRobot/TcRobotExample/TcRobotExample -m /c/ws/TcRobot/TcRobotExample/TcRobotExample/hashmap

# prepare the libray
 twingrind prepare -d /c/ws/TcRobot/TcRobot/TcRobot -m /c/ws/TcRobot/TcRobotExample/TcRobotExample/hashmap

# Not sure... Do I have to recompile my library ? Tried it and recompiled my task, but it gave multiple errors...
iadonkey commented 10 months ago

It works like this

It is important to use the same hash map file for all of the libraries, which you want to profile, and your PLC.

stefanbesler commented 10 months ago

@captain-yoshi can I close this issue? it be working if you use the same hashmap file, right?

captain-yoshi commented 10 months ago

Yup it works as expected. Thanks again!