MCPcopy Create free account
hub / github.com/adny-code/fastgrind / list_threads

Method list_threads

tools/fastgrind.py:780–791  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

778 return self.reader.default_start_tick(), self.reader.max_tick_ms
779
780 def list_threads(self) -> list[dict[str, Any]]:
781 return [
782 {
783 "thread_id": thread.thread_id,
784 "first_tick_ms": thread.first_tick_ms,
785 "last_tick_ms": thread.last_tick_ms,
786 "total_malloc_bytes": thread.total_malloc_bytes,
787 "total_free_bytes": thread.total_free_bytes,
788 "net_bytes": thread.total_malloc_bytes - thread.total_free_bytes,
789 }
790 for thread in self.reader.thread_table
791 ]
792
793 def list_functions(
794 self,

Callers 3

_dispatchMethod · 0.80
__init__Method · 0.80
inspect_commandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected