Javascript Profiling: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 28: Line 28:
</dl>
</dl>


Possibly have attributes or methods to enable/disable profiling specific attributes? (custom/memory/time/etc.)


== The Profiler.Frame object ==
== The Profiler.Frame object ==
Line 127: Line 126:
* Create a generic <tt>Profiler.Statistics</tt> which is an aggregator for stats, kinda like http://sourceware.org/systemtap/langref/Statistics_aggregates.html where you call <tt>stats.insert(4)</tt> and it would automatically track min, max, average, count, etc.
* Create a generic <tt>Profiler.Statistics</tt> which is an aggregator for stats, kinda like http://sourceware.org/systemtap/langref/Statistics_aggregates.html where you call <tt>stats.insert(4)</tt> and it would automatically track min, max, average, count, etc.
* Throw away all data more than N seconds old because it's probably not interesting and wasting memory now
* Throw away all data more than N seconds old because it's probably not interesting and wasting memory now
* Possibly have attributes or methods to enable/disable profiling specific attributes? (memory/time/network/etc.)
22

edits

Navigation menu