heapspy-mcp 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. heapspy_mcp-0.1.1/.gitignore +6 -0
  2. heapspy_mcp-0.1.1/PKG-INFO +1544 -0
  3. heapspy_mcp-0.1.1/README.md +1532 -0
  4. heapspy_mcp-0.1.1/deploy/kubernetes/daemonset.yaml +89 -0
  5. heapspy_mcp-0.1.1/pyproject.toml +49 -0
  6. heapspy_mcp-0.1.1/src/heapspy_mcp/__init__.py +3 -0
  7. heapspy_mcp-0.1.1/src/heapspy_mcp/__main__.py +167 -0
  8. heapspy_mcp-0.1.1/src/heapspy_mcp/allocations.py +347 -0
  9. heapspy_mcp-0.1.1/src/heapspy_mcp/capture.py +242 -0
  10. heapspy_mcp-0.1.1/src/heapspy_mcp/cli.py +518 -0
  11. heapspy_mcp-0.1.1/src/heapspy_mcp/config.py +380 -0
  12. heapspy_mcp-0.1.1/src/heapspy_mcp/cpu.py +1081 -0
  13. heapspy_mcp-0.1.1/src/heapspy_mcp/processes.py +152 -0
  14. heapspy_mcp-0.1.1/src/heapspy_mcp/py.typed +0 -0
  15. heapspy_mcp-0.1.1/src/heapspy_mcp/pyspy.py +628 -0
  16. heapspy_mcp-0.1.1/src/heapspy_mcp/server.py +545 -0
  17. heapspy_mcp-0.1.1/src/heapspy_mcp/snapshots.py +82 -0
  18. heapspy_mcp-0.1.1/src/heapspy_mcp/source_map.py +700 -0
  19. heapspy_mcp-0.1.1/src/heapspy_mcp/summarize.py +429 -0
  20. heapspy_mcp-0.1.1/src/heapspy_mcp/system/__init__.py +1296 -0
  21. heapspy_mcp-0.1.1/src/heapspy_mcp/system/cgroups.py +667 -0
  22. heapspy_mcp-0.1.1/src/heapspy_mcp/system/colocation.py +654 -0
  23. heapspy_mcp-0.1.1/src/heapspy_mcp/system/diagnose.py +1042 -0
  24. heapspy_mcp-0.1.1/src/heapspy_mcp/system/groups.py +553 -0
  25. heapspy_mcp-0.1.1/src/heapspy_mcp/system/listing.py +64 -0
  26. heapspy_mcp-0.1.1/src/heapspy_mcp/system/perf.py +424 -0
  27. heapspy_mcp-0.1.1/src/heapspy_mcp/system/probe.py +354 -0
  28. heapspy_mcp-0.1.1/src/heapspy_mcp/system/procfs.py +629 -0
  29. heapspy_mcp-0.1.1/src/heapspy_mcp/system/redact.py +105 -0
  30. heapspy_mcp-0.1.1/src/heapspy_mcp/system/sampling.py +267 -0
  31. heapspy_mcp-0.1.1/src/heapspy_mcp/system/search.py +1116 -0
  32. heapspy_mcp-0.1.1/src/heapspy_mcp/system/stalls.py +731 -0
  33. heapspy_mcp-0.1.1/src/heapspy_mcp/system/taskstats.py +166 -0
  34. heapspy_mcp-0.1.1/src/heapspy_mcp/system/views.py +635 -0
  35. heapspy_mcp-0.1.1/src/heapspy_mcp/system/wait_categories.py +379 -0
  36. heapspy_mcp-0.1.1/src/heapspy_mcp/system/windows.py +425 -0
  37. heapspy_mcp-0.1.1/tests/__init__.py +0 -0
  38. heapspy_mcp-0.1.1/tests/conftest.py +141 -0
  39. heapspy_mcp-0.1.1/tests/contention_worker.c +31 -0
  40. heapspy_mcp-0.1.1/tests/contention_workload.py +118 -0
  41. heapspy_mcp-0.1.1/tests/cpu_victims.py +72 -0
  42. heapspy_mcp-0.1.1/tests/fake_heapspy.py +420 -0
  43. heapspy_mcp-0.1.1/tests/fake_pyspy.py +193 -0
  44. heapspy_mcp-0.1.1/tests/fixtures/contention/diag_api_2c_signals.json +63 -0
  45. heapspy_mcp-0.1.1/tests/fixtures/contention/sched_5_15.txt +25 -0
  46. heapspy_mcp-0.1.1/tests/fixtures/contention/sched_6_18.txt +28 -0
  47. heapspy_mcp-0.1.1/tests/fixtures/heapspy/README.md +132 -0
  48. heapspy_mcp-0.1.1/tests/fixtures/heapspy/analyze_allocations.json +287 -0
  49. heapspy_mcp-0.1.1/tests/fixtures/heapspy/contract.hpya +0 -0
  50. heapspy_mcp-0.1.1/tests/fixtures/heapspy/contract.snapshot +0 -0
  51. heapspy_mcp-0.1.1/tests/fixtures/heapspy/dump.json +28 -0
  52. heapspy_mcp-0.1.1/tests/fixtures/system/cgroup_events_5.0.txt +1 -0
  53. heapspy_mcp-0.1.1/tests/fixtures/system/cgroup_events_frozen_6.18.txt +2 -0
  54. heapspy_mcp-0.1.1/tests/fixtures/system/cpu_stat_v1_6.18.txt +5 -0
  55. heapspy_mcp-0.1.1/tests/fixtures/system/cpu_stat_v2_5.15.txt +6 -0
  56. heapspy_mcp-0.1.1/tests/fixtures/system/cpu_stat_v2_6.6.txt +9 -0
  57. heapspy_mcp-0.1.1/tests/fixtures/system/cpu_stat_v2root_6.18.txt +4 -0
  58. heapspy_mcp-0.1.1/tests/fixtures/system/freezer_state_v1.txt +1 -0
  59. heapspy_mcp-0.1.1/tests/fixtures/system/kernel_stacks.txt +293 -0
  60. heapspy_mcp-0.1.1/tests/fixtures/system/meminfo_6.18.txt +54 -0
  61. heapspy_mcp-0.1.1/tests/fixtures/system/memory_events_v2_5.4.txt +5 -0
  62. heapspy_mcp-0.1.1/tests/fixtures/system/memory_events_v2_6.6.txt +6 -0
  63. heapspy_mcp-0.1.1/tests/fixtures/system/memory_oom_control_v1_6.18.txt +3 -0
  64. heapspy_mcp-0.1.1/tests/fixtures/system/memory_stat_v1_5.4.txt +40 -0
  65. heapspy_mcp-0.1.1/tests/fixtures/system/memory_stat_v1_6.18.txt +42 -0
  66. heapspy_mcp-0.1.1/tests/fixtures/system/memory_stat_v2_6.6.txt +53 -0
  67. heapspy_mcp-0.1.1/tests/fixtures/system/mountinfo_hybrid_6.18.txt +12 -0
  68. heapspy_mcp-0.1.1/tests/fixtures/system/mountinfo_v1_combined.txt +5 -0
  69. heapspy_mcp-0.1.1/tests/fixtures/system/mountinfo_v2_only.txt +3 -0
  70. heapspy_mcp-0.1.1/tests/fixtures/system/pid_cgroup_hybrid_6.18.txt +10 -0
  71. heapspy_mcp-0.1.1/tests/fixtures/system/pid_cgroup_v1_cgroupfs.txt +5 -0
  72. heapspy_mcp-0.1.1/tests/fixtures/system/pid_cgroup_v2_kubepods.txt +1 -0
  73. heapspy_mcp-0.1.1/tests/fixtures/system/proc_schedstat_v15.txt +6 -0
  74. heapspy_mcp-0.1.1/tests/fixtures/system/proc_schedstat_v16.txt +5 -0
  75. heapspy_mcp-0.1.1/tests/fixtures/system/proc_schedstat_v17.txt +4 -0
  76. heapspy_mcp-0.1.1/tests/fixtures/system/proc_schedstat_v99.txt +2 -0
  77. heapspy_mcp-0.1.1/tests/fixtures/system/proc_stat_2.6_short.txt +6 -0
  78. heapspy_mcp-0.1.1/tests/fixtures/system/proc_stat_5.4.txt +10 -0
  79. heapspy_mcp-0.1.1/tests/fixtures/system/proc_stat_6.18.txt +12 -0
  80. heapspy_mcp-0.1.1/tests/fixtures/system/psi_cpu_5.4.txt +1 -0
  81. heapspy_mcp-0.1.1/tests/fixtures/system/psi_cpu_6.18.txt +2 -0
  82. heapspy_mcp-0.1.1/tests/fixtures/system/psi_io_6.18.txt +2 -0
  83. heapspy_mcp-0.1.1/tests/fixtures/system/psi_memory_5.4.txt +2 -0
  84. heapspy_mcp-0.1.1/tests/fixtures/system/psi_memory_cgroup_6.18.txt +2 -0
  85. heapspy_mcp-0.1.1/tests/fixtures/system/smaps_rollup_6.18.txt +23 -0
  86. heapspy_mcp-0.1.1/tests/fixtures/system/stat_5.4_comm_with_parens.txt +1 -0
  87. heapspy_mcp-0.1.1/tests/fixtures/system/stat_6.18.txt +1 -0
  88. heapspy_mcp-0.1.1/tests/fixtures/system/status_5.4.txt +23 -0
  89. heapspy_mcp-0.1.1/tests/fixtures/system/status_6.18.txt +59 -0
  90. heapspy_mcp-0.1.1/tests/fixtures/system/vmstat_6.18.txt +192 -0
  91. heapspy_mcp-0.1.1/tests/test_allocations.py +280 -0
  92. heapspy_mcp-0.1.1/tests/test_analysis_tools.py +222 -0
  93. heapspy_mcp-0.1.1/tests/test_capture.py +328 -0
  94. heapspy_mcp-0.1.1/tests/test_cli.py +228 -0
  95. heapspy_mcp-0.1.1/tests/test_colocation.py +150 -0
  96. heapspy_mcp-0.1.1/tests/test_config.py +150 -0
  97. heapspy_mcp-0.1.1/tests/test_contention_live.py +311 -0
  98. heapspy_mcp-0.1.1/tests/test_contention_parsers.py +115 -0
  99. heapspy_mcp-0.1.1/tests/test_contention_tools.py +156 -0
  100. heapspy_mcp-0.1.1/tests/test_contract_real.py +527 -0
  101. heapspy_mcp-0.1.1/tests/test_cpu.py +474 -0
  102. heapspy_mcp-0.1.1/tests/test_cpu_integration.py +227 -0
  103. heapspy_mcp-0.1.1/tests/test_diagnose.py +303 -0
  104. heapspy_mcp-0.1.1/tests/test_diagnose_contention.py +118 -0
  105. heapspy_mcp-0.1.1/tests/test_groups.py +105 -0
  106. heapspy_mcp-0.1.1/tests/test_perf.py +195 -0
  107. heapspy_mcp-0.1.1/tests/test_probe.py +33 -0
  108. heapspy_mcp-0.1.1/tests/test_processes.py +130 -0
  109. heapspy_mcp-0.1.1/tests/test_pyspy.py +367 -0
  110. heapspy_mcp-0.1.1/tests/test_redact.py +72 -0
  111. heapspy_mcp-0.1.1/tests/test_search_live.py +224 -0
  112. heapspy_mcp-0.1.1/tests/test_server.py +72 -0
  113. heapspy_mcp-0.1.1/tests/test_slice_fit.py +115 -0
  114. heapspy_mcp-0.1.1/tests/test_source_locations.py +241 -0
  115. heapspy_mcp-0.1.1/tests/test_source_map.py +499 -0
  116. heapspy_mcp-0.1.1/tests/test_stall_parsers.py +241 -0
  117. heapspy_mcp-0.1.1/tests/test_stalls.py +271 -0
  118. heapspy_mcp-0.1.1/tests/test_stalls_live.py +461 -0
  119. heapspy_mcp-0.1.1/tests/test_stdio.py +36 -0
  120. heapspy_mcp-0.1.1/tests/test_system_live.py +242 -0
  121. heapspy_mcp-0.1.1/tests/test_system_parsers.py +328 -0
  122. heapspy_mcp-0.1.1/tests/test_windows.py +38 -0
  123. heapspy_mcp-0.1.1/uv.lock +1340 -0
@@ -0,0 +1,6 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.egg-info/
4
+ .pytest_cache/
5
+ .ruff_cache/
6
+ dist/