-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
26 lines (18 loc) · 1.04 KB
/
Copy path__init__.py
File metadata and controls
26 lines (18 loc) · 1.04 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
"""profile_diff — a stdlib-only CPU + memory profiler and PR performance-diff tool.
The package exposes three cohesive pieces, each usable from the command line via
``python -m profile_diff <subcommand>``:
* :mod:`profile_diff.profiler` — run a target (pytest suite, script, or callable)
under :mod:`cProfile` and :mod:`tracemalloc` and emit a stable JSON report.
* :mod:`profile_diff.diff` — compare two JSON reports and render a deterministic
Markdown / text / JSON performance diff.
* :mod:`profile_diff.comment` — post or update a single PR comment with the diff,
using the GitHub REST API over :mod:`urllib.request` (transport injectable).
Everything here relies only on the Python standard library.
"""
from __future__ import annotations
__version__ = "0.1.0"
#: Schema version stamped into every report produced by :mod:`profile_diff.profiler`.
SCHEMA_VERSION = 1
#: Hidden HTML marker used to identify (and later update) our own PR comment.
MARKER = "<!-- profile-diff-action -->"
__all__ = ["__version__", "SCHEMA_VERSION", "MARKER"]