mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-138122: New Tachyon UI (#142116)
Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
This commit is contained in:
parent
52f9b5f580
commit
f87eb4d7cd
6 changed files with 2129 additions and 1167 deletions
|
|
@ -113,13 +113,15 @@ def collect(self, stack_frames, skip_idle=False):
|
|||
# Call parent collect to process frames
|
||||
super().collect(stack_frames, skip_idle=skip_idle)
|
||||
|
||||
def set_stats(self, sample_interval_usec, duration_sec, sample_rate, error_rate=None, mode=None):
|
||||
def set_stats(self, sample_interval_usec, duration_sec, sample_rate,
|
||||
error_rate=None, missed_samples=None, mode=None):
|
||||
"""Set profiling statistics to include in flamegraph data."""
|
||||
self.stats = {
|
||||
"sample_interval_usec": sample_interval_usec,
|
||||
"duration_sec": duration_sec,
|
||||
"sample_rate": sample_rate,
|
||||
"error_rate": error_rate,
|
||||
"missed_samples": missed_samples,
|
||||
"mode": mode
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue