Browse Source

finished 20251216

jiyuhang 3 months ago
parent
commit
31aba81d44

+ 3 - 0
.gitignore

@@ -0,0 +1,3 @@
+.idea/
+__pycache__/
+results/*

+ 0 - 5
.idea/.gitignore

@@ -1,5 +0,0 @@
-# 默认忽略的文件
-/shelf/
-/workspace.xml
-# 基于编辑器的 HTTP 客户端请求
-/httpRequests/

+ 0 - 6
.idea/inspectionProfiles/profiles_settings.xml

@@ -1,6 +0,0 @@
-<component name="InspectionProjectProfileManager">
-  <settings>
-    <option name="USE_PROJECT_PROFILE" value="false" />
-    <version value="1.0" />
-  </settings>
-</component>

+ 0 - 8
.idea/listen_py.iml

@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module type="PYTHON_MODULE" version="4">
-  <component name="NewModuleRootManager">
-    <content url="file://$MODULE_DIR$" />
-    <orderEntry type="jdk" jdkName="pytest" jdkType="Python SDK" />
-    <orderEntry type="sourceFolder" forTests="false" />
-  </component>
-</module>

+ 0 - 7
.idea/misc.xml

@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="Black">
-    <option name="sdkName" value="torch" />
-  </component>
-  <component name="ProjectRootManager" version="2" project-jdk-name="pytest" project-jdk-type="Python SDK" />
-</project>

+ 0 - 8
.idea/modules.xml

@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="ProjectModuleManager">
-    <modules>
-      <module fileurl="file://$PROJECT_DIR$/.idea/listen_py.iml" filepath="$PROJECT_DIR$/.idea/listen_py.iml" />
-    </modules>
-  </component>
-</project>

+ 0 - 6
.idea/vcs.xml

@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="VcsDirectoryMappings">
-    <mapping directory="$PROJECT_DIR$" vcs="Git" />
-  </component>
-</project>

+ 17 - 14
plot.py

@@ -409,17 +409,20 @@ def plot_psutil_data(ax, psutil_data):
     ax2.set_ylabel('百分比 (%)', fontsize=12, fontweight='bold', color='#d32f2f')
     ax2.tick_params(axis='y', labelcolor='#d32f2f')
     
-    # 合并图例
-    if lines:
-        labels = [l.get_label() for l in lines]
-        ax.legend(lines, labels, loc='upper left', frameon=True, fancybox=True, shadow=True, ncol=2)
-    
     # 添加统计信息文本框
     textstr = f'CPU峰值: {max_cpu:.1f}%\n内存峰值: {max_rss:.1f} MB'
     props = dict(boxstyle='round', facecolor='#ffebee', alpha=0.8)
+    # 将统计信息放在左上角
     ax.text(0.03, 0.97, textstr, transform=ax.transAxes, fontsize=10,
             verticalalignment='top', bbox=props, fontweight='bold')
     
+    # 合并图例,放置在右侧避免与统计信息重叠
+    if lines:
+        labels = [l.get_label() for l in lines]
+        # 将图例放在左上角,但在统计信息文本框的下方
+        ax.legend(lines, labels, loc='upper left', frameon=True, fancybox=True,
+                  shadow=True, ncol=1, bbox_to_anchor=(0.02, 0.85))  # 调整bbox_to_anchor来控制具体位置
+
     ax.set_title('进程资源使用情况', fontsize=14, fontweight='bold', pad=20)
     ax.grid(True, alpha=0.4)
 
@@ -619,7 +622,7 @@ def main():
     data = read_json(args.input)
     
     # 创建更大的图表
-    fig = plt.figure(figsize=(20, 18))
+    fig = plt.figure(figsize=(24, 16))
     fig.suptitle('Python 性能分析报告', fontsize=24, fontweight='bold', y=0.95)
     
     # 设置图表背景色
@@ -629,19 +632,19 @@ def main():
     fig.text(0.5, 0.5, 'Python Performance Report', fontsize=40, color='gray', 
              ha='center', va='center', alpha=0.05, rotation=45)
     
-    # 创建子图
+    # 创建子图,增加每行的高度
     # cProfile 表格
-    ax1 = plt.subplot2grid((4, 2), (0, 0), colspan=1)
+    ax1 = plt.subplot2grid((10, 2), (0, 0), rowspan=3, colspan=1)
     # cProfile 柱状图
-    ax2 = plt.subplot2grid((4, 2), (0, 1), colspan=1)
+    ax2 = plt.subplot2grid((10, 2), (0, 1), rowspan=3,colspan=1)
     # 内存使用情况
-    ax3 = plt.subplot2grid((4, 2), (1, 0), colspan=1)
+    ax3 = plt.subplot2grid((10, 2), (3, 0), rowspan=4,colspan=1)
     # 系统资源监控
-    ax4 = plt.subplot2grid((4, 2), (1, 1), colspan=1)
+    ax4 = plt.subplot2grid((10, 2), (3, 1), rowspan=4,colspan=1)
     # 网络使用情况
-    ax5 = plt.subplot2grid((4, 2), (2, 0), colspan=1)
+    ax5 = plt.subplot2grid((10, 2), (7, 0), rowspan=3, colspan=1)
     # 磁盘读写情况
-    ax6 = plt.subplot2grid((4, 2), (2, 1), colspan=1)
+    ax6 = plt.subplot2grid((10, 2), (7, 1), rowspan=3, colspan=1)
     
     # 绘制各个子图
     plot_cprofile_table(ax1, data.get('analysis_results', {}).get('cprofile', {}))
@@ -652,7 +655,7 @@ def main():
     plot_disk_io_data(ax6, data.get('analysis_results', {}).get('psutil', {}))
     
     # 调整布局
-    plt.tight_layout(rect=[0, 0.01, 1, 0.93])  # 减少底部边距以减少空白区域
+    plt.tight_layout(rect=(0, 0.01, 1, 0.93))  # 减少底部边距以减少空白区域
     
     # 添加页脚信息
     fig.text(0.95, 0.005, f'生成时间: {datetime.now().strftime("%Y-%m-%d %H:%M:%S")}', 

BIN
results/cprofile_output.prof


BIN
results/mprofile_memory_plot.png


+ 0 - 95
results/mprofile_output.dat

@@ -1,95 +0,0 @@
-CMDLINE /home/jiyuhang/miniconda3/envs/testpy1/bin/python3.12 ./test/test_script.py
-MEM 5.625000 1765857235.4117
-MEM 22.187500 1765857235.5120
-MEM 22.187500 1765857235.6123
-MEM 22.187500 1765857235.7126
-MEM 22.187500 1765857235.8130
-MEM 22.187500 1765857235.9137
-MEM 22.187500 1765857236.0142
-MEM 22.187500 1765857236.1151
-MEM 22.187500 1765857236.2158
-MEM 22.187500 1765857236.3165
-MEM 22.187500 1765857236.4170
-MEM 22.187500 1765857236.5177
-MEM 22.187500 1765857236.6183
-MEM 22.187500 1765857236.7188
-MEM 22.187500 1765857236.8192
-MEM 22.187500 1765857236.9195
-MEM 22.187500 1765857237.0197
-MEM 22.187500 1765857237.1199
-MEM 22.187500 1765857237.2202
-MEM 22.187500 1765857237.3206
-MEM 22.187500 1765857237.4211
-MEM 22.187500 1765857237.5216
-MEM 22.187500 1765857237.6221
-MEM 22.187500 1765857237.7228
-MEM 22.187500 1765857237.8232
-MEM 22.187500 1765857237.9239
-MEM 22.187500 1765857238.0244
-MEM 22.187500 1765857238.1251
-MEM 22.187500 1765857238.2257
-MEM 22.187500 1765857238.3260
-MEM 22.187500 1765857238.4267
-MEM 22.343750 1765857238.5271
-MEM 22.343750 1765857238.6280
-MEM 22.343750 1765857238.7283
-MEM 22.343750 1765857238.8290
-MEM 22.343750 1765857238.9296
-MEM 22.343750 1765857239.0305
-MEM 22.343750 1765857239.1311
-MEM 22.343750 1765857239.2319
-MEM 22.343750 1765857239.3325
-MEM 22.343750 1765857239.4329
-MEM 22.343750 1765857239.5336
-MEM 22.343750 1765857239.6343
-MEM 22.343750 1765857239.7346
-MEM 22.343750 1765857239.8351
-MEM 22.343750 1765857239.9354
-MEM 22.343750 1765857240.0358
-MEM 22.343750 1765857240.1362
-MEM 22.343750 1765857240.2369
-MEM 22.343750 1765857240.3375
-MEM 22.343750 1765857240.4382
-MEM 22.343750 1765857240.5404
-MEM 22.343750 1765857240.6411
-MEM 22.343750 1765857240.7416
-MEM 22.343750 1765857240.8422
-MEM 22.343750 1765857240.9432
-MEM 22.343750 1765857241.0439
-MEM 22.343750 1765857241.1443
-MEM 22.343750 1765857241.2447
-MEM 22.343750 1765857241.3450
-MEM 22.343750 1765857241.4455
-MEM 22.343750 1765857241.5457
-MEM 22.343750 1765857241.6460
-MEM 22.343750 1765857241.7465
-MEM 22.343750 1765857241.8471
-MEM 22.343750 1765857241.9475
-MEM 22.343750 1765857242.0479
-MEM 22.343750 1765857242.1487
-MEM 22.343750 1765857242.2491
-MEM 22.343750 1765857242.3494
-MEM 22.343750 1765857242.4498
-MEM 22.343750 1765857242.5501
-MEM 38.437500 1765857242.6504
-MEM 80.937500 1765857242.7507
-MEM 24.566406 1765857242.8511
-MEM 24.566406 1765857242.9514
-MEM 24.566406 1765857243.0519
-MEM 24.566406 1765857243.1524
-MEM 24.566406 1765857243.2531
-MEM 24.566406 1765857243.3536
-MEM 24.566406 1765857243.4538
-MEM 24.566406 1765857243.5545
-MEM 24.566406 1765857243.6548
-MEM 24.566406 1765857243.7556
-MEM 24.566406 1765857243.8560
-MEM 24.566406 1765857243.9562
-MEM 24.566406 1765857244.0567
-MEM 24.566406 1765857244.1570
-MEM 24.566406 1765857244.2574
-MEM 24.566406 1765857244.3578
-MEM 24.566406 1765857244.4580
-MEM 24.566406 1765857244.5583
-MEM 24.566406 1765857244.6587
-MEM 24.566406 1765857244.7590

+ 0 - 573
results/performance_analysis_report.json

@@ -1,573 +0,0 @@
-{
-  "timestamp": "2025-12-16T11:54:19.408464",
-  "analysis_results": {
-    "cprofile": {
-      "type": "cprofile",
-      "points": [
-        {
-          "function": "('~', 0, '<built-in method builtins.exec>')",
-          "call_count": 1,
-          "total_time": 3.6450000000000003e-06,
-          "cumulative_time": 9.506689994
-        },
-        {
-          "function": "('./test/test_script.py', 1, '<module>')",
-          "call_count": 1,
-          "total_time": 6.446000000000001e-06,
-          "cumulative_time": 9.506686349
-        },
-        {
-          "function": "('./test/test_script.py', 28, 'main')",
-          "call_count": 1,
-          "total_time": 0.011689909,
-          "cumulative_time": 9.50393816
-        },
-        {
-          "function": "('~', 0, '<built-in method time.sleep>')",
-          "call_count": 5,
-          "total_time": 9.100956633000001,
-          "cumulative_time": 9.100956633000001
-        },
-        {
-          "function": "('./test/test_script.py', 9, 'cpu_intensive_task')",
-          "call_count": 1,
-          "total_time": 0.10780107500000001,
-          "cumulative_time": 0.22203787700000002
-        },
-        {
-          "function": "('./test/test_script.py', 21, 'memory_intensive_task')",
-          "call_count": 1,
-          "total_time": 0.162487875,
-          "cumulative_time": 0.16903995600000002
-        },
-        {
-          "function": "('./test/test_script.py', 16, 'io_simulation_task')",
-          "call_count": 1,
-          "total_time": 4.744000000000001e-06,
-          "cumulative_time": 0.10017874600000001
-        },
-        {
-          "function": "('~', 0, '<built-in method math.sin>')",
-          "call_count": 1000000,
-          "total_time": 0.065166231,
-          "cumulative_time": 0.065166231
-        },
-        {
-          "function": "('~', 0, '<built-in method math.sqrt>')",
-          "call_count": 1000000,
-          "total_time": 0.049070571,
-          "cumulative_time": 0.049070571
-        },
-        {
-          "function": "('~', 0, \"<method 'append' of 'list' objects>\")",
-          "call_count": 100002,
-          "total_time": 0.006551307,
-          "cumulative_time": 0.006551307
-        },
-        {
-          "function": "('<frozen importlib._bootstrap>', 1349, '_find_and_load')",
-          "call_count": 1,
-          "total_time": 1.1114e-05,
-          "cumulative_time": 0.002741743
-        },
-        {
-          "function": "('<frozen importlib._bootstrap>', 1304, '_find_and_load_unlocked')",
-          "call_count": 1,
-          "total_time": 4.531e-06,
-          "cumulative_time": 0.002691966
-        },
-        {
-          "function": "('<frozen importlib._bootstrap>', 1240, '_find_spec')",
-          "call_count": 1,
-          "total_time": 9.16e-06,
-          "cumulative_time": 0.002065955
-        },
-        {
-          "function": "('<frozen importlib._bootstrap_external>', 1524, 'find_spec')",
-          "call_count": 1,
-          "total_time": 1.7250000000000002e-06,
-          "cumulative_time": 0.0020456800000000002
-        },
-        {
-          "function": "('<frozen importlib._bootstrap_external>', 1495, '_get_spec')",
-          "call_count": 1,
-          "total_time": 7.861e-06,
-          "cumulative_time": 0.002043955
-        },
-        {
-          "function": "('<frozen importlib._bootstrap_external>', 140, '_path_stat')",
-          "call_count": 7,
-          "total_time": 2.9300000000000003e-06,
-          "cumulative_time": 0.0011750080000000002
-        },
-        {
-          "function": "('~', 0, '<built-in method posix.stat>')",
-          "call_count": 7,
-          "total_time": 0.001172078,
-          "cumulative_time": 0.001172078
-        },
-        {
-          "function": "('<frozen importlib._bootstrap_external>', 1597, 'find_spec')",
-          "call_count": 4,
-          "total_time": 2.3951e-05,
-          "cumulative_time": 0.0011410810000000002
-        },
-        {
-          "function": "('<frozen importlib._bootstrap_external>', 1473, '_path_importer_cache')",
-          "call_count": 5,
-          "total_time": 3.165e-06,
-          "cumulative_time": 0.000894405
-        },
-        {
-          "function": "('<frozen importlib._bootstrap_external>', 1460, '_path_hooks')",
-          "call_count": 1,
-          "total_time": 5.964e-06,
-          "cumulative_time": 0.0008912400000000001
-        }
-      ],
-      "num": 20
-    },
-    "memory_profile": {
-      "type": "memory_profile",
-      "points": [
-        {
-          "timestamp": 1765857235.4117,
-          "memory": 5.625
-        },
-        {
-          "timestamp": 1765857235.512,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857235.6123,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857235.7126,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857235.813,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857235.9137,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857236.0142,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857236.1151,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857236.2158,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857236.3165,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857236.417,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857236.5177,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857236.6183,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857236.7188,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857236.8192,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857236.9195,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857237.0197,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857237.1199,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857237.2202,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857237.3206,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857237.4211,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857237.5216,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857237.6221,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857237.7228,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857237.8232,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857237.9239,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857238.0244,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857238.1251,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857238.2257,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857238.326,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857238.4267,
-          "memory": 22.1875
-        },
-        {
-          "timestamp": 1765857238.5271,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857238.628,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857238.7283,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857238.829,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857238.9296,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857239.0305,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857239.1311,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857239.2319,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857239.3325,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857239.4329,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857239.5336,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857239.6343,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857239.7346,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857239.8351,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857239.9354,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857240.0358,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857240.1362,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857240.2369,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857240.3375,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857240.4382,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857240.5404,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857240.6411,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857240.7416,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857240.8422,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857240.9432,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857241.0439,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857241.1443,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857241.2447,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857241.345,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857241.4455,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857241.5457,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857241.646,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857241.7465,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857241.8471,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857241.9475,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857242.0479,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857242.1487,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857242.2491,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857242.3494,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857242.4498,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857242.5501,
-          "memory": 22.34375
-        },
-        {
-          "timestamp": 1765857242.6504,
-          "memory": 38.4375
-        },
-        {
-          "timestamp": 1765857242.7507,
-          "memory": 80.9375
-        },
-        {
-          "timestamp": 1765857242.8511,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857242.9514,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857243.0519,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857243.1524,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857243.2531,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857243.3536,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857243.4538,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857243.5545,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857243.6548,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857243.7556,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857243.856,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857243.9562,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857244.0567,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857244.157,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857244.2574,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857244.3578,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857244.458,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857244.5583,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857244.6587,
-          "memory": 24.566406
-        },
-        {
-          "timestamp": 1765857244.759,
-          "memory": 24.566406
-        }
-      ],
-      "num": 94,
-      "peak_memory": 80.9375
-    },
-    "pyspy_flamegraph": {
-      "type": "pyspy_flamegraph",
-      "file_size_bytes": 24670,
-      "status": "generated"
-    },
-    "psutil": {
-      "type": "psutil",
-      "points": [
-        {
-          "pid": 34846,
-          "now_time": "2025-12-16 11:54:07",
-          "cpu_pct": "0.00%",
-          "rss": "8.44MB",
-          "vms": "15.98MB",
-          "mem_pct": "0.11%",
-          "disk_read": "0.00 MB/s",
-          "disk_write": "0.00 MB/s",
-          "sys_net_recv": "0.00 MB/s",
-          "sys_net_send": "0.00 MB/s"
-        },
-        {
-          "pid": 34846,
-          "now_time": "2025-12-16 11:54:09",
-          "cpu_pct": "0.00%",
-          "rss": "8.75MB",
-          "vms": "15.98MB",
-          "mem_pct": "0.11%",
-          "disk_read": "0.00 MB/s",
-          "disk_write": "0.00 MB/s",
-          "sys_net_recv": "0.00 MB/s",
-          "sys_net_send": "0.00 MB/s"
-        },
-        {
-          "pid": 34846,
-          "now_time": "2025-12-16 11:54:11",
-          "cpu_pct": "0.00%",
-          "rss": "8.75MB",
-          "vms": "15.98MB",
-          "mem_pct": "0.11%",
-          "disk_read": "0.00 MB/s",
-          "disk_write": "0.00 MB/s",
-          "sys_net_recv": "0.00 MB/s",
-          "sys_net_send": "0.00 MB/s"
-        },
-        {
-          "pid": 34846,
-          "now_time": "2025-12-16 11:54:13",
-          "cpu_pct": "0.00%",
-          "rss": "94.81MB",
-          "vms": "101.82MB",
-          "mem_pct": "1.21%",
-          "disk_read": "0.00 MB/s",
-          "disk_write": "0.00 MB/s",
-          "sys_net_recv": "0.00 MB/s",
-          "sys_net_send": "0.00 MB/s"
-        }
-      ],
-      "num": 4
-    }
-  }
-}

BIN
results/performance_analysis_report.png


+ 0 - 5
results/psutil_output.csv

@@ -1,5 +0,0 @@
-pid,now_time,cpu_pct,rss,vms,mem_pct,disk_read,disk_write,sys_net_recv,sys_net_send,name,status,pwd,exe,start_time
-34846,2025-12-16 11:54:07,0.00%,8.44MB,15.98MB,0.11%,0.00 MB/s,0.00 MB/s,0.00 MB/s,0.00 MB/s,python,sleeping,/mnt/d/code/listen_py,/home/jiyuhang/miniconda3/envs/testpy1/bin/python3.12,2025-12-16 11:54:04
-34846,2025-12-16 11:54:09,0.00%,8.75MB,15.98MB,0.11%,0.00 MB/s,0.00 MB/s,0.00 MB/s,0.00 MB/s,python,sleeping,/mnt/d/code/listen_py,/home/jiyuhang/miniconda3/envs/testpy1/bin/python3.12,2025-12-16 11:54:04
-34846,2025-12-16 11:54:11,0.00%,8.75MB,15.98MB,0.11%,0.00 MB/s,0.00 MB/s,0.00 MB/s,0.00 MB/s,python,sleeping,/mnt/d/code/listen_py,/home/jiyuhang/miniconda3/envs/testpy1/bin/python3.12,2025-12-16 11:54:04
-34846,2025-12-16 11:54:13,0.00%,94.81MB,101.82MB,1.21%,0.00 MB/s,0.00 MB/s,0.00 MB/s,0.00 MB/s,python,sleeping,/mnt/d/code/listen_py,/home/jiyuhang/miniconda3/envs/testpy1/bin/python3.12,2025-12-16 11:54:04

File diff suppressed because it is too large
+ 0 - 490
results/pyspy_output.svg


Some files were not shown because too many files changed in this diff