mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-138122: Refactor the CLI of profiling.sampling into subcommands (#141813)
This commit is contained in:
parent
425f24e4fa
commit
3eec46d3c3
15 changed files with 1460 additions and 1440 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue