Skip to content

feat: use a database proper #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 6 additions & 8 deletions analysis/ebpf-lammps-reax/1-run-analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import argparse
import os
import sys
import re
import pandas
import json

Expand Down Expand Up @@ -181,7 +180,6 @@ def parse_data(indir, outdir, files):
Parse filepaths for environment, etc., and results files for data.
"""
p = ps.ProblemSizeParser("lammps")
ebpf_p = {}

# Sanity check groups at end
checks = {
Expand Down Expand Up @@ -327,7 +325,7 @@ def update_path(path):
drop=True
)
plt.figure(figsize=(12, 8))
bar = sns.barplot(
sns.barplot(
x="path",
y="count",
hue="experiment",
Expand All @@ -339,8 +337,8 @@ def update_path(path):
plt.title(f"Open Counts by Path for {command.capitalize()} >1")
plt.xticks(rotation=45, ha="right")
plt.tight_layout()
plt.savefig(os.path.join(img_outdir, f"lammps-open-close.svg"))
plt.savefig(os.path.join(img_outdir, f"lammps-open-close.png"))
plt.savefig(os.path.join(img_outdir, "lammps-open-close.svg"))
plt.savefig(os.path.join(img_outdir, "lammps-open-close.png"))
plt.clf()


Expand Down Expand Up @@ -463,7 +461,7 @@ def plot_lammps(df, img_outdir, non_anon):
palette=colors,
hue_order=order,
)
axes[0].set_title(f"LAMMPS Duration", fontsize=11)
axes[0].set_title("LAMMPS Duration", fontsize=11)
axes[0].set_ylabel("Seconds", fontsize=11)
axes[0].set_xlabel("", fontsize=11)

Expand Down Expand Up @@ -507,8 +505,8 @@ def plot_lammps(df, img_outdir, non_anon):
# The legend will go here
axes[2].axis("off")
plt.tight_layout()
plt.savefig(os.path.join(img_outdir, f"lammps-paper.svg"))
plt.savefig(os.path.join(img_outdir, f"lammps-paper.png"))
plt.savefig(os.path.join(img_outdir, "lammps-paper.svg"))
plt.savefig(os.path.join(img_outdir, "lammps-paper.png"))
plt.clf()


Expand Down
Loading