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

Method __init__

Lib/profiling/sampling/heatmap_collector.py:179–189  ·  view source on GitHub ↗

Load all templates and assets once.

(self)

Source from the content-addressed store, hash-verified

177 """Loads and caches HTML/CSS/JS templates for heatmap generation."""
178
179 def __init__(self):
180 """Load all templates and assets once."""
181 self.index_template = None
182 self.file_template = None
183 self.index_css = None
184 self.index_js = None
185 self.file_css = None
186 self.file_js = None
187 self.logo_html = None
188
189 self._load_templates()
190
191 def _load_templates(self):
192 """Load all template files from _heatmap_assets."""

Callers

nothing calls this directly

Calls 1

_load_templatesMethod · 0.95

Tested by

no test coverage detected