mirror of
https://github.com/python/cpython.git
synced 2025-11-03 15:11:34 +00:00
gh-138122: Implement PEP 799 (#138142)
This commit is contained in:
parent
f733e428f8
commit
56eb6b64a0
23 changed files with 497 additions and 386 deletions
11
Lib/profiling/sampling/collector.py
Normal file
11
Lib/profiling/sampling/collector.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
class Collector(ABC):
|
||||
@abstractmethod
|
||||
def collect(self, stack_frames):
|
||||
"""Collect profiling data from stack frames."""
|
||||
|
||||
@abstractmethod
|
||||
def export(self, filename):
|
||||
"""Export collected data to a file."""
|
||||
Loading…
Add table
Add a link
Reference in a new issue