no way to compare when less than two revisions

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.


Letzte Überarbeitung
development:python:profiler [2019-09-02 20:18] – angelegt Martin Prochnow
Zeile 1: Zeile 1:
 +====== Profiler ======
  
 +===== Bestimmten Code-Abschnitt profilen =====
 +
 +<code python>
 +import cProfiler
 +
 +# ...
 +
 +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