MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / get_time_range

Function get_time_range

benchmarks/src/postprocessing/monitor.py:443–446  ·  view source on GitHub ↗
(series: pd.Series)

Source from the content-addressed store, hash-verified

441
442
443def get_time_range(series: pd.Series) -> TimeRange:
444 min_datetime = series.min() - datetime.timedelta(seconds=1)
445 max_datetime = series.max()
446 return TimeRange(start=min_datetime, end=max_datetime)
447
448
449def render_flamegraph(flamegraph: Path):

Callers 5

resampleFunction · 0.85
render_node_utilizationFunction · 0.85
render_processFunction · 0.85
render_process_cpu_timeFunction · 0.85

Calls 1

TimeRangeClass · 0.70

Tested by

no test coverage detected