|
|
@@ -134,14 +134,13 @@ run_memory_profiler() {
|
|
|
if command -v mprof &> /dev/null; then
|
|
|
if mprof run --output "$MEMORY_PROFILE_OUTPUT" "$TEST_SCRIPT"; then
|
|
|
log_success "memory_profiler 分析完成,结果保存至 $MEMORY_PROFILE_OUTPUT"
|
|
|
-
|
|
|
- # 绘制内存占用曲线
|
|
|
- log_info "绘制内存占用曲线"
|
|
|
- if MPLBACKEND=Agg mprof plot --flame "$MEMORY_PROFILE_OUTPUT" -o "$MEMORY_PLOT_OUTPUT"; then
|
|
|
- log_success "绘制完成,结果保存至 $MEMORY_PLOT_OUTPUT"
|
|
|
- else
|
|
|
- log_error "绘制失败"
|
|
|
- fi
|
|
|
+ # 绘制内存占用曲线(弃用)
|
|
|
+# log_info "绘制内存占用曲线"
|
|
|
+# if MPLBACKEND=Agg mprof plot --flame "$MEMORY_PROFILE_OUTPUT" -o "$MEMORY_PLOT_OUTPUT"; then
|
|
|
+# log_success "绘制完成,结果保存至 $MEMORY_PLOT_OUTPUT"
|
|
|
+# else
|
|
|
+# log_error "绘制失败"
|
|
|
+# fi
|
|
|
else
|
|
|
log_error "memory_profiler 分析失败"
|
|
|
fi
|