MCPcopy Index your code
hub / github.com/python/cpython / StatsLoaderShim

Class StatsLoaderShim

Lib/pstats.py:647–654  ·  view source on GitHub ↗

Compatibility shim implementing 'create_stats' needed by Stats classes to handle already unmarshalled data.

Source from the content-addressed store, hash-verified

645#**************************************************************************
646
647class StatsLoaderShim:
648 """Compatibility shim implementing 'create_stats' needed by Stats classes
649 to handle already unmarshalled data."""
650 def __init__(self, raw_stats):
651 self.stats = raw_stats
652
653 def create_stats(self):
654 pass
655
656def stats_factory(raw_stats):
657 """Return a Stats or SampledStats instance based on the marker in raw_stats."""

Callers 1

stats_factoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…