JavaScript Profiler in IE
Checkout http://ejohn.org/blog/deep-tracing-of-internet-explorer/ the dynaTrace tool shown here is fantastic and works with IE7.
Checkout http://ejohn.org/blog/deep-tracing-of-internet-explorer/ the dynaTrace tool shown here is fantastic and works with IE7.
describe may give you everything you want otherwise you can perform aggregations using groupby and pass a list of agg functions: http://pandas.pydata.org/pandas-docs/stable/groupby.html#applying-multiple-functions-at-once In [43]: df.describe() Out[43]: shopper_num is_martian number_of_items count_pineapples count 14.0000 14 14.000000 14 mean 7.5000 0 3.357143 0 std 4.1833 0 6.452276 0 min 1.0000 False 0.000000 0 25% 4.2500 0 0.000000 0 … Read more
There is something wrong with the way you are specifying the executable to the compute profiler. If I put a hash bang line at the top of your posted code: #!/usr/bin/env python and then give the python file executable permissions, the compute profiler runs the code without complaint and I get this:
perf stat –all-user ./my_program on Linux will use CPU performance counters to record how many user-space instructions it ran, and how many core clock cycles it took. And how much CPU time it used, and will calculate average instructions per core clock cycle for you, e.g. 3,496,129,612 instructions:u # 2.61 insn per cycle It calculates … Read more
The “Hot Path” shown on the summary view is the most expensive call path based on the number of inclusive samples (samples from the function and also samples from functions called by the function) and exclusive samples (samples only from the function). A “sample” is just the fact the function was at the top of … Read more
Having just read the paper (again), let me try to explain it. Suppose it takes samples at 100Hz, except not when the process is blocked for IO or some other reason. Each sample records the PC, which is in some function. The count of samples in that function is incremented. So, at the end of … Read more
I asked me the same question two years ago. I didn’t know what the grey bars respectively the System category stand for. It was hard to find an official answer because the only thing the Chrome DevTools Docs said was “Activity that was not instrumented by DevTools”. But this statement was removed since there is … Read more
Using gcc, I compile and link with -pg (as explained e.g. here), then continue by running the program (according to the principles also suggested at that URL) and using gprof. The tools will vary if you’re using different compilers &c, but the URL is still recommended, even then, for the parts that are about general … Read more
Use the timeit module from the Python standard library. Basic usage: from timeit import Timer # first argument is the code to be run, the second “setup” argument is only run once, # and it not included in the execution time. t = Timer(“””x.index(123)”””, setup=”””x = range(1000)”””) print t.timeit() # prints float, for example 5.8254 … Read more
You can use Traceview. It is far from ideal, but works. This article describes how to use it.