no way to compare when less than two revisions

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.


Vorhergehende Überarbeitung
development:python:profiler [2020-01-05 11:53] (aktuell) Martin Prochnow
Zeile 1: Zeile 1:
 +====== Profiler ======
  
 +===== Bestimmten Code-Abschnitt profilen =====
 +
 +<code python>
 +import cProfile
 +
 +# ...
 +
 +cp = cProfile.Profile()
 +cp.enable()
 +
 +# Code which should be profiled
 +
 +cp.disable()
 +cp.print_stats()
 +
 +# ...
 +</code>
 +
 +{{tag>Python}}
  • Zuletzt geändert: 2020-01-05 11:53