Commit 56a1924
Remove unnecessary annotations from
Removed:
- tracing/__main__.pyi: deleted — __main__ stubs are executable entry
points, not importable API surface
- tracing/_utils.pyi: deleted — _Utils is a private helper used only
inside the tracing module itself
- sampling/__main__.pyi: deleted — PERMISSION_ERROR constants and
handle_permission_error are CLI implementation details, not importable
API
- sampling/binary_collector.pyi: removed COMPRESSION_NONE, COMPRESSION_ZSTD
— internal constants not part of user-facing API
- sampling/cli.pyi: removed CustomFormatter, DiffFlamegraphAction,
FORMAT_EXTENSIONS, COLLECTOR_MAP, and associated imports — internal CLI
scaffolding and dispatch dicts used only inside cli.py; also removed
re-exports of errors/collectors/sample that duplicate their own modules
- sampling/constants.pyi: removed MICROSECONDS_PER_SECOND (re-exported
only internally), MILLISECONDS_PER_SECOND and _INTERNAL_FRAME_SUFFIXES
(private implementation details)
- sampling/gecko_collector.pyi: removed GECKO_CATEGORIES, CATEGORY_*,
DEFAULT_SUBCATEGORY, GECKO_FORMAT_VERSION, GECKO_PREPROCESSED_VERSION,
RESOURCE_TYPE_LIBRARY, FRAME_ADDRESS_NONE, FRAME_INLINE_DEPTH_ROOT,
PROCESS_TYPE_MAIN, STACKWALK_DISABLED — integer constants that encode
the internal Gecko profile format; not part of user-facing API
- sampling/heatmap_collector.pyi: removed _TemplateLoader, _TreeBuilder,
_HtmlRenderer — private classes (underscore-prefixed) used only
internally for HTML rendering
- sampling/opcode_utils.pyi: removed base_opcode, variant_opcode — these
are local variables inside get_opcode_info, not module-level attributes;
the stubs were incorrect
- sampling/sample.pyi: removed MIN_SAMPLES_FOR_TUI — internal threshold
constant for TUI display logic
- sampling/_sync_coordinator.pyi: removed CoordinatorError, ArgumentError,
SyncError, TargetError — all exceptions live in a private module
(_sync_coordinator) and are only raised and caught internally; never
exposed through any public module
Kept despite `dead` flagging:
- tracing/__init__.pyi: dump_stats, snapshot_stats, runcall — public
methods on the exported Profile class; standard profiling API
- sampling/binary_collector.pyi: get_stats, collect_failed_sample —
public methods; collect_failed_sample is part of the Collector interface
called in sample.py
- sampling/binary_reader.pyi: get_stats, convert_binary_to_format —
public method and public utility function
- sampling/string_table.pyi: intern, get_string, get_strings — core API
of StringTable
- sampling/live_collector/display.pyi: get_dimensions, refresh, redraw,
get_input, set_nodelay, has_colors, init_color_pair, get_color_pair,
get_attr, find_text — abstract methods on DisplayInterface define the
ABC contract; concrete implementations on CursesDisplay and MockDisplay
must also be stubbed
- sampling/live_collector/trend_tracker.pyi: set_enabled, get_trend —
public methods on public class
- sampling/live_collector/widgets.pyi: format_rate_with_units,
draw_thread_status, draw_finished_banner, draw_stats_rows,
render_filter_input_prompt — public methods on public widget classes
- sampling/live_collector/collector.pyi: increment_status_flag,
as_status_dict, collect_failed_sample — public methods on ThreadData
dataclass and LiveStatsCollector
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>profiling stubs1 parent 5afdd54 commit 56a1924
File tree
11 files changed
+0
-113
lines changed- stdlib/profiling
- sampling
- tracing
11 files changed
+0
-113
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 8 | | |
12 | 9 | | |
13 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | 1 | | |
6 | 2 | | |
7 | 3 | | |
8 | 4 | | |
9 | | - | |
10 | 5 | | |
11 | 6 | | |
12 | 7 | | |
| |||
19 | 14 | | |
20 | 15 | | |
21 | 16 | | |
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 | 17 | | |
52 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
15 | | - | |
16 | 13 | | |
17 | 14 | | |
18 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 6 | | |
26 | 7 | | |
27 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 34 | | |
55 | 35 | | |
56 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | 1 | | |
5 | 2 | | |
6 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
This file was deleted.
0 commit comments