How to read nodejs internal profiler tick-processor output

Indeed, you are right in your assumption about time actually spent compiling the code: it takes milliseconds (which could be seen with –trace-opt flag). Now talking about that LazyCompile. Here is a quotation from Vyacheslav Egorov’s (former v8 dev) blog: If you are using V8’s tick processors keep in mind that LazyCompile: prefix does not … Read more

Cabal not installing dependencies when needing profiling libraries?

I’ve enabled library-profiling: True in my ~/.cabal/config file. From then on, any new installations will automatically enable profiling. Unfortunately that still means I had to manually reinstall for the old packages already installed. Although, after a while of doing this manually, I now have most packages reinstalled with profiling enabled…

Linux application profiling

Ideally, I need an application that will attach to a process and log periodic snapshots of: memory usage number of threads CPU usage Well, in order to collect this type of information about your process, you don’t actually need a profiler on Linux. You can use top in batch mode. It runs in the batch … Read more

One could use a profiler, but why not just halt the program? [closed]

On Java servers it’s always been a neat trick to do 2-3 quick Ctrl–Breakss in a row and get 2-3 threaddumps of all running threads. Simply looking at where all the threads “are” may extremely quickly pinpoint where your performance problems are. This technique can reveal more performance problems in 2 minutes than any other … Read more

Interactive Python: cannot get `%lprun` to work, although line_profiler is imported properly

To make %lprun work, you need to load the extension into your session, using this command: In [1]: %load_ext line_profiler Check out this notebook to see some examples that use the magic. Besides, if you are working with Spyder, there is also a third-party line_profiler plugin, which you can find here.

Profiling python C extensions

After the comment by pygabriel I decided to upload a package to pypi that implements a profiler for python extensions using the cpu-profiler from google-perftools: http://pypi.python.org/pypi/yep I’ve found my way using google-perftools. The trick was to wrap the functions StartProfiler and StopProfiler in python (throught cython in my case). To profile the C extension is … Read more

Profiling high-performance Haskell code

You can use Linux perf events: https://ghc.haskell.org/trac/ghc/wiki/Debugging/LowLevelProfiling/Perf This will give you an output that looks like: # Samples: 9161149923 # # Overhead Command Shared Object Symbol # …….. ……. …………….. …… # 30.65% queens queens [.] s1ql_info 18.67% queens queens [.] s1qj_info 12.17% queens queens [.] s1qi_info 9.94% queens queens [.] s1o9_info 5.85% queens queens … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)