Profiling processor activity
tomk
Junior Member
When I'm working on a reasonably large project with multiple Netlinx and Duet modules I find it really hard to figure out what parts of the program are overloading the processor - be it particular event handlers, functions, java code or time spent shuffling commands/strings back and forth between devices.
Diagnostic and notification information is a start but it is positively medieval next to profiling tools for PC software that will tell you how many milliseconds have been spent in each function etc.
Do any similar tools exist for AMX? Or are there ways I can get access to scheduling information that will allow me to pinpoint processor hogs?
Cheers
Diagnostic and notification information is a start but it is positively medieval next to profiling tools for PC software that will tell you how many milliseconds have been spent in each function etc.
Do any similar tools exist for AMX? Or are there ways I can get access to scheduling information that will allow me to pinpoint processor hogs?
Cheers
Comments
-
Aside from writing your own basic profiling tools that compare time delta you may find the spy tool of use. If you telnet into an NI execute 'spy' to being and 'spy stop' to stop. It exposes spyLIB and can be useful particularly if you're writing duet modules than spawn multiple threads.
Also, if you are just wanting to quickly visualise how you system resources respond to different events this may be of use. -
Mate. Maaaaaate.
...
Mate.
Absolutely brilliant. Both of those things are wonderful and I fully intend to pick apart your java to see how you're doing this. Thanks. -
No problems.
It just sets up a telnet connection to the master and parses the result of 'cpu usage' and 'show mem' at regular intervals then feeds that into LiveGraph. Stupidly simple and nasty. There's plenty of nicer ways to do it but this approach means you don't need any client side code.I fully intend to pick apart your java to see how you're doing this. -
I run something similar but as a Duet mdoule on the NI. Supports connecting as Telnet loop back or through a serial port wired to the programming port. Companion RMS Monitor module to report back status to the server.
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums
