File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 the call stack. Low overhead and suitable for production use.
1111"""
1212
13- __all__ = [ "tracing" , "sampling" ]
13+ __all__ = ( "tracing" , "sampling" )
Original file line number Diff line number Diff line change 44call stack rather than tracing every function call.
55"""
66
7- from .collector import Collector
8- from .pstats_collector import PstatsCollector
9- from .stack_collector import CollapsedStackCollector
7+ from profiling .collector import Collector
8+ from profiling .pstats_collector import PstatsCollector
9+ from profiling .stack_collector import CollapsedStackCollector
1010
11- __all__ = [ "Collector" , "PstatsCollector" , "CollapsedStackCollector" ]
11+ __all__ = ( "Collector" , "PstatsCollector" , "CollapsedStackCollector" )
Original file line number Diff line number Diff line change 11"""Run the sampling profiler from the command line."""
22
3- from .sample import main
3+ from profiling .sample import main
44
55if __name__ == '__main__' :
66 main ()
Original file line number Diff line number Diff line change 11"""Tracing profiler for Python.
22
33This module provides deterministic profiling of Python programs by tracing
4- every function call and return. It's based on the cProfile implementation.
4+ every function call and return.
55"""
66
7- __all__ = [ "run" , "runctx" , "Profile" ]
7+ __all__ = ( "run" , "runctx" , "Profile" )
88
99import _lsprof
1010import importlib .machinery
Original file line number Diff line number Diff line change 11"""Run the tracing profiler from the command line."""
22
3- from . import main
3+ from profiling . tracing import main
44
55if __name__ == '__main__' :
66 main ()
You can’t perform that action at this time.
0 commit comments