Skip to content

Commit acef9a0

Browse files
More WASI fixes
1 parent e9ae950 commit acef9a0

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

Lib/profiling/sampling/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
call stack rather than tracing every function call.
55
"""
66

7+
# Profiling requires the _remote_debugging C extension.
78
try:
89
import _remote_debugging # noqa: F401
910
except ImportError:

Lib/test/test_profiling/test_sampling_profiler.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@
1414
from collections import namedtuple
1515
from 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-
2417
from test.support.os_helper import unlink
2518
from test.support import force_not_colorized_test_class, SHORT_TIMEOUT
2619
from test.support.socket_helper import find_unused_port
@@ -38,6 +31,12 @@
3831
)
3932
else:
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

0 commit comments

Comments
 (0)