cpython/Lib/cProfile.py

15 lines
342 B
Python
Raw Normal View History

2025-08-27 17:52:50 +01:00
"""Compatibility wrapper for cProfile module.
2025-08-27 17:52:50 +01:00
This module maintains backward compatibility by importing from the new
profiling.tracing module.
"""
2025-08-27 17:52:50 +01:00
from profiling.tracing import run, runctx, Profile
2025-08-27 17:52:50 +01:00
__all__ = ["run", "runctx", "Profile"]
2025-08-27 17:52:50 +01:00
if __name__ == "__main__":
import sys
2025-08-27 17:52:50 +01:00
from profiling.tracing.__main__ import main
main()