Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r76156:f1ffbb37232f
Date: 2015-02-26 12:36 +0200
http://bitbucket.org/pypy/pypy/changeset/f1ffbb37232f/

Log:    more docs

diff --git a/pypy/doc/jit-hooks.rst b/pypy/doc/jit-hooks.rst
--- a/pypy/doc/jit-hooks.rst
+++ b/pypy/doc/jit-hooks.rst
@@ -52,5 +52,17 @@
     Get the jit status in the specific moment in time. Note that this
     is eager - the attribute access is not lazy, if you need new stats
     you need to call this function again. You might want to call
-    ``enable_debug`` to get more information
+    ``enable_debug`` to get more information. It returns an instance
+    of ``JitInfoSnapshot``
 
+.. class:: JitInfoSnapshot
+
+    A class describing current snapshot. Usable attributes:
+
+    * ``counters`` - internal JIT integer counters
+
+    * ``counter_times`` - internal JIT float counters, notably time spent
+      TRACING and in the JIT BACKEND
+
+    * ``loop_run_times`` - counters for number of times loops are run, only
+      works when ``enable_debug`` is called.
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to