Skip to content

Commit

Permalink
cpu util window, stats lines opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
LeandroTreu committed May 7, 2024
1 parent 8f63925 commit 0ad5305
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion profile_parser/js/plot_cpu_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const PLOT_FILES_IN_ONE_GRAPH = true;
// Each consecutive TRACES_PER_VERSION number of files get put in the same bucket
const N_VERSIONS = 2; // Number of different benchmark versions to compare (each version gets a color in the graph)
const TRACES_PER_VERSION = 3; // Number of samples/traces per version
const CPU_UTIL_SAMPLE_WINDOW_SIZE_MS = 500; // Adjust for sampling resolution / smoothing
const CPU_UTIL_SAMPLE_WINDOW_SIZE_MS = 250; // Adjust for sampling resolution / smoothing (Chrome uses about 500 ms)
const files_in_directory = fs_1.default.readdirSync("results");
let data = [];
const layout = {
Expand Down
4 changes: 2 additions & 2 deletions profile_parser/js/plot_stats_comparison.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const layout = {
shapes: [
// 60 fps line
{
opacity: 0.7,
opacity: 1.0,
type: "line",
x0: 0,
y0: 16.7,
Expand All @@ -92,7 +92,7 @@ const layout = {
},
// 30 fps line
{
opacity: 0.7,
opacity: 1.0,
type: "line",
x0: 0,
y0: 33.4,
Expand Down
2 changes: 1 addition & 1 deletion profile_parser/src/plot_cpu_util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const PLOT_FILES_IN_ONE_GRAPH = true;
// Each consecutive TRACES_PER_VERSION number of files get put in the same bucket
const N_VERSIONS = 2; // Number of different benchmark versions to compare (each version gets a color in the graph)
const TRACES_PER_VERSION = 3; // Number of samples/traces per version
const CPU_UTIL_SAMPLE_WINDOW_SIZE_MS = 500; // Adjust for sampling resolution / smoothing
const CPU_UTIL_SAMPLE_WINDOW_SIZE_MS = 250; // Adjust for sampling resolution / smoothing (Chrome uses about 500 ms)

const files_in_directory = fs.readdirSync("results");

Expand Down
4 changes: 2 additions & 2 deletions profile_parser/src/plot_stats_comparison.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const layout = {
shapes: [
// 60 fps line
{
opacity: 0.7,
opacity: 1.0,
type: "line" as "line",
x0: 0,
y0: 16.7,
Expand All @@ -103,7 +103,7 @@ const layout = {
},
// 30 fps line
{
opacity: 0.7,
opacity: 1.0,
type: "line" as "line",
x0: 0,
y0: 33.4,
Expand Down

0 comments on commit 0ad5305

Please sign in to comment.