gh-138122: Implement PEP 799 (#138142)

This commit is contained in:
Pablo Galindo Salgado 2025-08-27 17:52:50 +01:00 committed by GitHub
parent f733e428f8
commit 56eb6b64a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 497 additions and 386 deletions

View 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."""