|
intoK Apprentice
Joined: 18 Feb 2007 Posts: 190
|
Posted: Wed Oct 22, 2008 9:08 pm
[FR] debugger delta sumator |
some way to have summed delta of marked lines displayed, fe i click on line delta and while dragging it up or down tooltip on mouse says delta sum for those selected lines
edit: and it also could calculate average |
|
|
|
Seb Wizard
Joined: 14 Aug 2004 Posts: 1269
|
Posted: Wed Oct 22, 2008 10:55 pm |
Min, Max, Mean, Median, Mode?, Total
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu Oct 23, 2008 12:08 am |
No need to be snarky, Seb. Clearly he meant mode :P
While this feature sounds like it could have its uses, I wonder how often it'd come up. It doesn't seem like something you'd have to do very often, and there're calculators that'll do this just fine. Hell, you could write a script to do it for you given a copy/paste of some lines. |
|
|
|
Seb Wizard
Joined: 14 Aug 2004 Posts: 1269
|
Posted: Thu Oct 23, 2008 1:46 am |
I haven't used the debugger that much yet, but I reckon what might be useful is to be able to run a report on the debug output (again, someone may be able to write a script to do it on some copy/paste output) which will analyse all the scripts and trigger patterns that run and list the 'Min, Max, Mean, Median, Mode?, Total, Count (number of hits)' of the scripts and patterns that take the longest to run, are run most often, etc. Actually you could run the report on the highest (duration) in terms of 'Max, Mean, Median, Total, Count (number of hits)' to product a result like:
Code: |
Top 10 trigger patterns that had the highest Max maching time
========================================
1. .* <-- Min: 1; Max 10; Mean: 5.6; Median: 4; Mode: 3; Total: 50; Count: 10 (Didn't check that these add up)
2. blah.*blah <-- Min: 1; Max 8; Mean: 5.4; Median: 4; Mode: 3; Total: 50; Count: 10 (Didn't check that these add up)
3. etc.
Top 10 trigger patterns that had the highest Mean maching time
========================================
1.
...
Top 10 trigger patterns that used to most total matching time
=======================================
1.
Top 10 trigger patterns that matched most often
===============================
1. |
Essentially summarizing the results twice: if you know SQL: grouping by trigger or script first to produce individual summary results, then getting the TOP 10 across the various aggregates. It might be easiest to insert all the results (i.e. script / trigger name and time delta) in e.g. SQLite and use it for the heavy lifting. (If you've used MS SQL Server, you might be familiar with SQL Profiler which is quite analogous to the new debugger.)
Something like this would probably be very good at isolating slow scripts and patterns and help to remove processing bottlenecks to generally increase performance. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|