gh-138122: Refactor the CLI of profiling.sampling into subcommands (#141813)

This commit is contained in:
Pablo Galindo Salgado 2025-11-24 11:45:08 +00:00 committed by GitHub
parent 425f24e4fa
commit 3eec46d3c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 1460 additions and 1440 deletions

View file

@ -11,7 +11,8 @@
class StackTraceCollector(Collector):
def __init__(self, *, skip_idle=False):
def __init__(self, sample_interval_usec, *, skip_idle=False):
self.sample_interval_usec = sample_interval_usec
self.skip_idle = skip_idle
def collect(self, stack_frames, skip_idle=False):