File: README.txt

package info (click to toggle)
glances 4.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 11,832 kB
  • sloc: python: 16,009; makefile: 437; javascript: 351; sh: 168
file content (17 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Glances profiling
=================

First install Sphinx and the RTD theme:

    apt install graphviz
    pip install gprof2dot

Then generate the profiling diagram:

    cd <Glances source>
    python -m cProfile -o /tmp/glances.pstats ./glances/__main__.py
    gprof2dot -f pstats /tmp/glances.pstats | dot -Tpng -o /tmp/glances-cprofile.png

Example:

.. image:: https://raw.githubusercontent.com/nicolargo/glances/develop/docs/dev/glances-cprofile.png