-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathsample.pyi
More file actions
58 lines (55 loc) · 1.46 KB
/
sample.pyi
File metadata and controls
58 lines (55 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
from collections import deque
from .collector import Collector as Collector
class SampleProfiler:
pid: int
sample_interval_usec: int
all_threads: bool
mode: int
collect_stats: bool
blocking: bool
sample_intervals: deque[float]
total_samples: int
realtime_stats: bool
def __init__(
self,
pid: int,
sample_interval_usec: int,
all_threads: bool,
*,
mode: int = ...,
native: bool = False,
gc: bool = True,
opcodes: bool = False,
skip_non_matching_threads: bool = True,
collect_stats: bool = False,
blocking: bool = False,
) -> None: ...
def sample(self, collector: Collector, duration_sec: float | None = None, *, async_aware: bool | str = False) -> None: ...
def sample(
pid: int,
collector: Collector,
*,
duration_sec: float | None = None,
all_threads: bool = False,
realtime_stats: bool = False,
mode: int = ...,
async_aware: str | bool | None = None,
native: bool = False,
gc: bool = True,
opcodes: bool = False,
blocking: bool = False,
) -> None: ...
def sample_live(
pid: int,
collector: Collector,
*,
duration_sec: float | None = None,
all_threads: bool = False,
realtime_stats: bool = False,
mode: int = ...,
async_aware: str | bool | None = None,
native: bool = False,
gc: bool = True,
opcodes: bool = False,
blocking: bool = False,
) -> None: ...