diff options
Diffstat (limited to 'Lib/profile/collector.py')
-rw-r--r-- | Lib/profile/collector.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/profile/collector.py b/Lib/profile/collector.py new file mode 100644 index 00000000000..28286120aef --- /dev/null +++ b/Lib/profile/collector.py @@ -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.""" |