Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Adam Turner <[email protected]>
  • Loading branch information
pablogsal and AA-Turner authored Aug 26, 2025
commit b2ec3639651e319eb5a0e27cb30258cf39adec3c
2 changes: 1 addition & 1 deletion Lib/profiling/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
the call stack. Low overhead and suitable for production use.
"""

__all__ = ["tracing", "sampling"]
__all__ = ("tracing", "sampling")
8 changes: 4 additions & 4 deletions Lib/profiling/sampling/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
call stack rather than tracing every function call.
"""

from .collector import Collector
from .pstats_collector import PstatsCollector
from .stack_collector import CollapsedStackCollector
from profiling.collector import Collector
from profiling.pstats_collector import PstatsCollector
from profiling.stack_collector import CollapsedStackCollector

__all__ = ["Collector", "PstatsCollector", "CollapsedStackCollector"]
__all__ = ("Collector", "PstatsCollector", "CollapsedStackCollector")
2 changes: 1 addition & 1 deletion Lib/profiling/sampling/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Run the sampling profiler from the command line."""

from .sample import main
from profiling.sample import main

if __name__ == '__main__':
main()
4 changes: 2 additions & 2 deletions Lib/profiling/tracing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""Tracing profiler for Python.

This module provides deterministic profiling of Python programs by tracing
every function call and return. It's based on the cProfile implementation.
every function call and return.
"""

__all__ = ["run", "runctx", "Profile"]
__all__ = ("run", "runctx", "Profile")

import _lsprof
import importlib.machinery
Expand Down
2 changes: 1 addition & 1 deletion Lib/profiling/tracing/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Run the tracing profiler from the command line."""

from . import main
from profiling.tracing import main

if __name__ == '__main__':
main()
Loading