Skip to content

Commit

Permalink
update html report (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
hilldani authored Jun 29, 2023
1 parent 1048c13 commit 21441b3
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 79 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# PerfSpect · [![Build](https://github.com/intel/PerfSpect/actions/workflows/build.yml/badge.svg)](https://github.com/intel/PerfSpect/actions/workflows/build.yml)[![CodeQL](https://github.com/intel/PerfSpect/actions/workflows/codeql.yml/badge.svg)](https://github.com/intel/PerfSpect/actions/workflows/codeql.yml)[![License](https://img.shields.io/badge/License-BSD--3-blue)](https://github.com/intel/PerfSpect/blob/master/LICENSE)
<div align="center">

[Quick Start](#quick-start-requires-perf-installed) | [Output](#output) | [Requirements](#requirements) | [Build from source](#build-from-source)
<div id="user-content-toc">
<ul>
<summary><h1 style="display: inline-block;">PerfSpect</h1></summary>
</ul>
</div>

[![Build](https://github.com/intel/PerfSpect/actions/workflows/build.yml/badge.svg)](https://github.com/intel/PerfSpect/actions/workflows/build.yml)[![CodeQL](https://github.com/intel/PerfSpect/actions/workflows/codeql.yml/badge.svg)](https://github.com/intel/PerfSpect/actions/workflows/codeql.yml)[![License](https://img.shields.io/badge/License-BSD--3-blue)](https://github.com/intel/PerfSpect/blob/master/LICENSE)

[![Static Badge](https://img.shields.io/badge/Live_Demo-red?style=for-the-badge)](https://intel.github.io/PerfSpect/)

[Quick Start](#quick-start-requires-perf-installed) | [Output](#output) | [Deploy in Kubernetes](#deploy-in-kubernetes) | [Requirements](#requirements) | [Build from source](#build-from-source)
</div>

PerfSpect is a system performance characterization tool built on top of linux perf. Most metrics and events come from [perfmon](https://github.com/intel/perfmon) and [TMA v4.5](https://www.intel.com/content/www/us/en/docs/vtune-profiler/cookbook/2023-1/top-down-microarchitecture-analysis-method.html). It contains two parts:

Expand Down Expand Up @@ -40,8 +51,6 @@ perf-postprocess outputs:
2. `metric_out.sys.csv`: metric values at every 5 second interval
3. `metric_out.html`: html view of a few select metrics

[live example report](https://intel.github.io/PerfSpect/)

![basic_stats](https://raw.githubusercontent.com/wiki/intel/PerfSpect/newhtml.gif)

## Deploy in Kubernetes
Expand Down
2 changes: 1 addition & 1 deletion _version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.2
1.3.3
4 changes: 3 additions & 1 deletion perf-postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,9 @@ def generate_metrics_averages(

def row(df, name):
if name in df.index:
return json.dumps(df.loc[name, :].values.flatten().tolist())
timeseries = df.loc[[name]].to_dict("split")
timeseries["columns"] = map(lambda x: round(float(x), 1), timeseries["columns"])
return json.dumps(list(zip(timeseries["columns"], timeseries["data"][0])))
else:
return "[]"

Expand Down
Loading

0 comments on commit 21441b3

Please sign in to comment.