summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2016-08-29 11:58:22 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2016-08-30 15:35:58 -0500
commit8d1a753a1b21a4ac6ae94cbb97ba2cbf7da8367d (patch)
treeb5a72fb35468213f0737e1808c52af27ee953ff6 /lib
parente04b76c2c3ee397df16d77a768496e007458c3da (diff)
downloadspack-8d1a753a1b21a4ac6ae94cbb97ba2cbf7da8367d.tar.gz
spack-8d1a753a1b21a4ac6ae94cbb97ba2cbf7da8367d.tar.bz2
spack-8d1a753a1b21a4ac6ae94cbb97ba2cbf7da8367d.tar.xz
spack-8d1a753a1b21a4ac6ae94cbb97ba2cbf7da8367d.zip
Fix spack --profile, fixes #1639
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/configuration.rst43
1 files changed, 8 insertions, 35 deletions
diff --git a/lib/spack/docs/configuration.rst b/lib/spack/docs/configuration.rst
index 0c88dd1d9d..ba534d1e62 100644
--- a/lib/spack/docs/configuration.rst
+++ b/lib/spack/docs/configuration.rst
@@ -201,41 +201,14 @@ supply ``-p`` to Spack on the command line, before any subcommands.
.. _spack-p:
-^^^^^^^^^^^^
-``spack -p``
-^^^^^^^^^^^^
-
-``spack -p`` output looks like this:
-
-.. code-block:: console
-
- $ spack -p graph dyninst
- o dyninst
- \|\
- \| \|\
- \| o \| libdwarf
- \|/ /
- o \| libelf
- /
- o boost
-
- 307670 function calls (305943 primitive calls) in 0.127 seconds
-
- Ordered by: internal time
-
- ncalls tottime percall cumtime percall filename:lineno(function)
- 853 0.021 0.000 0.066 0.000 inspect.py:472(getmodule)
- 51197 0.011 0.000 0.018 0.000 inspect.py:51(ismodule)
- 73961 0.010 0.000 0.010 0.000 {isinstance}
- 1762 0.006 0.000 0.053 0.000 inspect.py:440(getsourcefile)
- 32075 0.006 0.000 0.006 0.000 {hasattr}
- 1760 0.004 0.000 0.004 0.000 {posix.stat}
- 2240 0.004 0.000 0.004 0.000 {posix.lstat}
- 2602 0.004 0.000 0.011 0.000 inspect.py:398(getfile)
- 771 0.004 0.000 0.077 0.000 inspect.py:518(findsource)
- 2656 0.004 0.000 0.004 0.000 {method 'match' of '_sre.SRE_Pattern' objects}
- 30772 0.003 0.000 0.003 0.000 {method 'get' of 'dict' objects}
- ...
+^^^^^^^^^^^^^^^^^^^
+``spack --profile``
+^^^^^^^^^^^^^^^^^^^
+
+``spack --profile`` output looks like this:
+
+.. command-output:: spack --profile graph dyninst
+ :ellipsis: 25
The bottom of the output shows the top most time consuming functions,
slowest on top. The profiling support is from Python's built-in tool,