Method/Function Performance Tracking?
BlitzMax Forums/BlitzMax Programming/Method/Function Performance Tracking?
| ||
Chris: Hullo. I was going to build a type with a method I would put into every function/method in my projects that would, if I set a global to, track all of [these functions] memory usages, cpu usages, and lifespans. This data would be output to a file, which could then be read and analyzed by another program, which would turn everything into graphs and summaries and such. I was wondering if anyone had already done this though, or if there was anything with a similar result. |
| ||
I think most people do their own performance analysis and probably not as fancy as a graph. I usually manually run speed tests and then decide what is the best implementation. |
| ||
I haven't seen anything like this for BMax, but it is a handy thing. Generally called "code instrumentation" profiling. Most packages like this provide a program that automatically adds or removes those calls to every function in a program. A good profiler would be very handy for BMax. |
| ||
I think most people do their own performance analysis and probably not as fancy as a graph. I usually manually run speed tests and then decide what is the best implementation. Which is exactly why this would be so useful I haven't seen anything like this for BMax, but it is a handy thing. Generally called "code instrumentation" profiling. Most packages like this provide a program that automatically adds or removes those calls to every function in a program. Ah. I was wondering what it was called. I'm not so sure how I could have it automatically add it to every function, but I'll probably make it at least where it has the other functionality.A good profiler would be very handy for BMax. Unfortunately, I'm currently working on my Astroduelers project so I won't be able to do too much anytime soon AFAIK. |
| ||
There's Ant's TProfiler |