minor changes
This commit is contained in:
parent
1a44f86e9c
commit
6c58640378
@ -177,7 +177,6 @@ def show_grid(df, col, row, shown=["clflush_miss_n", "clflush_remote_hit", "clfl
|
||||
# Red = Remote Hit
|
||||
# Green = Local Hit
|
||||
# Yellow = Shared Hit
|
||||
df.loc[:, (row,)] = df[row].apply(dict_to_json)
|
||||
g = sns.FacetGrid(df, col=col, row=row, legend_out=True)
|
||||
g.map(custom_hist, "time", *shown)
|
||||
|
||||
@ -202,14 +201,19 @@ def export_stats_csv():
|
||||
stats.to_csv(sys.argv[1] + ".stats.csv", index=False)
|
||||
|
||||
|
||||
custom_hist(df["time"], df["clflush_miss_n"], df["clflush_remote_hit"], title="miss v. hit")
|
||||
plt.show()
|
||||
df.loc[:, ("hash",)] = df["hash"].apply(dict_to_json)
|
||||
|
||||
show_specific_position(0, 2, 0)
|
||||
if "NO_PLOT" not in os.environ:
|
||||
custom_hist(df["time"], df["clflush_miss_n"], df["clflush_remote_hit"], title="miss v. hit")
|
||||
plt.show()
|
||||
|
||||
df_main_core_0 = df[df["main_core"] == 0]
|
||||
show_grid(df_main_core_0, "helper_core", "hash")
|
||||
show_grid(df, "main_core", "hash")
|
||||
show_specific_position(0, 2, 0)
|
||||
|
||||
df_main_core_0 = df[df["main_core"] == 0]
|
||||
df_main_core_0.loc[:, ("hash",)] = df["hash"].apply(dict_to_json)
|
||||
|
||||
show_grid(df_main_core_0, "helper_core", "hash")
|
||||
show_grid(df, "main_core", "hash")
|
||||
|
||||
|
||||
if not os.path.exists(sys.argv[1] + ".stats.csv"):
|
||||
|
@ -56,10 +56,10 @@ stats = pd.read_csv(sys.argv[1] + ".stats.csv",
|
||||
slice_mapping = pd.read_csv(sys.argv[1] + ".slices.csv")
|
||||
core_mapping = pd.read_csv(sys.argv[1] + ".cores.csv")
|
||||
|
||||
print(core_mapping.to_string())
|
||||
print(slice_mapping.to_string())
|
||||
print("core mapping:\n", core_mapping.to_string())
|
||||
print("slice mapping:\n", slice_mapping.to_string())
|
||||
|
||||
print("core {} is mapped to '{}'".format(4, repr(core_mapping.iloc[4])))
|
||||
#print("core {} is mapped to '{}'".format(4, repr(core_mapping.iloc[4])))
|
||||
|
||||
min_time_miss = stats["clflush_miss_n"].min()
|
||||
max_time_miss = stats["clflush_miss_n"].max()
|
||||
@ -91,8 +91,7 @@ print("Graphing from {} to {}".format(graph_lower_miss, graph_upper_miss))
|
||||
|
||||
g_ = sns.FacetGrid(stats, col="main_core_fixed", row="slice_group")
|
||||
|
||||
g_.map(sns.distplot, 'clflush_miss_n', bins=range(graph_lower_miss, graph_upper_miss), color="b")
|
||||
#g.map(sns.scatterplot, 'slice_group', 'clflush_local_hit_n', color="g")
|
||||
g_.map(sns.histplot, 'clflush_miss_n', bins=range(graph_lower_miss, graph_upper_miss), color="b", edgecolor="b", alpha=0.2)
|
||||
plt.show()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user