stefanbesler / twingrind Goto Github PK
View Code? Open in Web Editor NEWCall-graph profiling for TwinCAT 3
License: GNU General Public License v3.0
Call-graph profiling for TwinCAT 3
License: GNU General Public License v3.0
Hi,
if you compile you plc programm with the compiler definition "TC_SYM_WITH_NAMESPACE" you cant get access to the symbol.
Because the Namspace of the Library will be added to the symbolname.
I would suggesst you to add an parameter for the symbol prefix,
Best Regards
Markus
Typo für symbolname "Profiler.Data[0,1]"! You have added an space (Hex 20) between the two array positions!
Please delete the space in [{frame},< >{task}]
if you have done this please release an new version, thx
I have a task which is set to a 1kHz loop as configured below:
This is the Task online graph which shows the CPU time (don't know if it's the mean?) spent on the task. Notice that there are a lot of Exceeded counter
, e.g. > 1 milliseconds.
This graph represents the last execution time from Tc2_Utilities.PROFILER
. It seems to corroborate the Exceeded counter
: certain spikes goes above the 1kHz.
This graph was generated using the slowest Capture Mode
in continuous mode, which gives 69.65% for my task. That represents about 696 microseconds. This would confirm that the code is well under 1 millisecond.
So for my question: Is my assumption correct ? Does that mean that code is less then 1 kHz but there is something else that can't execute it properly under 1kHz ? This could be the OS, how the task is configured (priorities), I/O's, etc... Note that this was generated on a non-Beckhoff PC with Windows 10 (i3-2100 @ 3.1 GHz).
I have a PLC project which relies on a custom library. When following the procedure, I get his error:
$ twingrind prepare -d /c/ws/TcRobot/TcRobotExample/TcRobotExample -m /c/ws/TcRobot/TcRobotExample/TcRobotExample/hashmap
INFO:root:Updating an existing hashfile
DEBUG:root:DEMO_SIC2: guards added in 1 methods, contains (3 returns)
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...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.