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

Method _get_category

Lib/profiling/sampling/gecko_collector.py:389–390  ·  view source on GitHub ↗
(self, filename: str)

Source from the content-addressed store, hash-verified

387 return not filename.startswith("<") or filename in ["<stdin>", "<string>"]
388
389 def _get_category(self, filename: str) -> int:
390 return CATEGORY_PYTHON if self._is_python(filename) else CATEGORY_NATIVE
391
392 def _intern_string(self, s):
393 """Intern a string in the global string table."""

Callers 1

_process_stackMethod · 0.95

Calls 1

_is_pythonMethod · 0.95

Tested by

no test coverage detected