File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44call stack rather than tracing every function call.
55"""
66
7+ # Profiling requires the _remote_debugging C extension.
78try :
89 import _remote_debugging # noqa: F401
910except ImportError :
Original file line number Diff line number Diff line change 1414from collections import namedtuple
1515from unittest import mock
1616
17- from profiling .sampling .pstats_collector import PstatsCollector
18- from profiling .sampling .stack_collector import (
19- CollapsedStackCollector ,
20- FlamegraphCollector ,
21- )
22- from profiling .sampling .gecko_collector import GeckoCollector
23-
2417from test .support .os_helper import unlink
2518from test .support import force_not_colorized_test_class , SHORT_TIMEOUT
2619from test .support .socket_helper import find_unused_port
3831 )
3932else :
4033 import profiling .sampling
34+ from profiling .sampling .pstats_collector import PstatsCollector
35+ from profiling .sampling .stack_collector import (
36+ CollapsedStackCollector ,
37+ FlamegraphCollector ,
38+ )
39+ from profiling .sampling .gecko_collector import GeckoCollector
4140 from profiling .sampling .sample import SampleProfiler
4241
4342
You can’t perform that action at this time.
0 commit comments