{% macro resource_chart(chart) %}

{{ chart.label }}

{{ chart.unit }}
{{ chart.source }}
{{ '%.2f'|format(chart.min) if chart.min is not none else '—' }} ~ {{ '%.2f'|format(chart.max) if chart.max is not none else '—' }} {{ chart.unit }}
{% for line in chart.lines %}{% if line.single %}{% else %}{% endif %}{% endfor %}
0 s{{ run.resource_view.duration_seconds|round(2) }} s

{{ chart.semantics or '直接采样' }} · 缺测 {{ chart.missing_count }} · 间断 {{ chart.gap_count }}{% if chart.reasons %}
{{ chart.reasons|join('; ') }}{% endif %}

{% endmacro %}
05 / resource observations

运行资源

采样值 · 独立来源
RSS 是服务进程驻留内存,主机可用内存是系统读数,两者不能相加。CPU 为单核等效,可超过 100%。温度来源读数不直接等同于 CPU 结温,曲线不证明降频或内存泄漏。
{% if run.resource_view.reason %}

— {{ run.resource_view.reason }} · 本轮缺少可显示的资源时间序列。

{% else %}
{% for chart in run.resource_view.charts %}{% if chart.metric in ['service_rss','system_mem_available','service_cpu_ticks'] %}{{ resource_chart(chart) }}{% endif %}{% endfor %}
{% set extra = run.resource_view.charts|rejectattr('metric','in',['service_rss','system_mem_available','service_cpu_ticks'])|list %} {% if extra %}
更多传感器与来源({{ extra|length }}) · 温度 / 频率
{% for chart in extra %}{{ resource_chart(chart) }}{% endfor %}
{% endif %}

同一横轴为距首次采样的秒数,含全部采样阶段;不同来源独立纵轴。缺测或超过 {{ run.resource_view.gap_threshold_seconds }} 秒的间断不连线,采样最大值不代表连续峰值。完整样本、阶段和序号保存在 index.json。

{% endif %}