-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16a95e0
commit eb2fe66
Showing
14 changed files
with
1,323 additions
and
995 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,27 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "(gdb) Launch", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "${workspaceRoot}/build/src/renderd", | ||
"args": ["-f", "-c", "/etc/renderd.conf"], | ||
"stopAtEntry": false, | ||
"cwd": "${fileDirname}", | ||
"environment": [], | ||
"externalConsole": false, | ||
"MIMode": "gdb", | ||
"setupCommands": [ | ||
{ | ||
"name": "(gdb) Launch", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "${workspaceRoot}/build/src/renderd", | ||
"args": [ | ||
"-f", | ||
"-c", | ||
"/etc/renderd.conf" | ||
], | ||
"stopAtEntry": false, | ||
"cwd": "${fileDirname}", | ||
"environment": [], | ||
"externalConsole": false, | ||
"MIMode": "gdb", | ||
"setupCommands": [ | ||
{ | ||
"description": "Enable pretty-printing for gdb", | ||
"text": "-enable-pretty-printing", | ||
"ignoreFailures": true | ||
} | ||
] | ||
"description": "Enable pretty-printing for gdb", | ||
"text": "-enable-pretty-printing", | ||
"ignoreFailures": true | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,70 @@ | ||
<html> | ||
<head> | ||
<title>Memory comparison of renderd with various malloc libraries</title> | ||
</head> | ||
|
||
<head> | ||
<title> | ||
Memory comparison of renderd with various malloc libraries | ||
</title> | ||
</head> | ||
|
||
<body> | ||
<body> | ||
<div> | ||
<canvas id="myChart"></canvas> | ||
<canvas id="myChart"></canvas> | ||
</div> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | ||
|
||
<script src="file:rssanon-glib.json5"></script> | ||
<script src="file:rssanon-jemalloc.json5"></script> | ||
<script src="file:rssanon-tcmalloc.json5"></script> | ||
<script src="file:rssanon-libc.js"></script> | ||
<script src="file:rssanon-jemalloc.js"></script> | ||
<script src="file:rssanon-mimalloc.js"></script> | ||
<script src="file:rssanon-tcmalloc.js"></script> | ||
|
||
<script> | ||
/* yes, this will yield O(n^2), but I can't be bothered right now */ | ||
const rss = (time, data) => { | ||
let rss = 0; | ||
data.forEach(e => { | ||
if (e.t < time) { | ||
rss = e.rss; | ||
} | ||
}); | ||
return rss; | ||
} | ||
const ctx = document.getElementById('myChart'); | ||
const data = glib.map(x => ({ | ||
t: x.t, | ||
glib_rss: x.rss, | ||
je_rss: rss(x.t, jemalloc), | ||
tc_rss: rss(x.t, tcmalloc) | ||
})); | ||
new Chart(ctx, { | ||
type: 'line', | ||
data: { | ||
labels: data.map(x => x.t), | ||
datasets: [{ | ||
label: 'glib', | ||
data: data.map(x => x.glib_rss) | ||
}, { | ||
label: 'jemalloc', | ||
data: data.map(x => x.je_rss) | ||
}, { | ||
label: 'tcmalloc', | ||
data: data.map(x => x.tc_rss) | ||
}] | ||
}, | ||
options: { | ||
scales: { | ||
y: { | ||
beginAtZero: true | ||
} | ||
} | ||
} | ||
/* yes, this will yield O(n^2), but I can't be bothered right now */ | ||
const rss = (time, data) => { | ||
let rss = 0; | ||
data.forEach((e) => { | ||
if (e.t < time) { | ||
rss = e.rss; | ||
} | ||
}); | ||
return rss; | ||
}; | ||
const ctx = document.getElementById("myChart"); | ||
const data = libc.map((x) => ({ | ||
t: x.t, | ||
libc_rss: x.rss, | ||
je_rss: rss(x.t, jemalloc), | ||
mi_rss: rss(x.t, mimalloc), | ||
tc_rss: rss(x.t, tcmalloc), | ||
})); | ||
new Chart(ctx, { | ||
type: "line", | ||
data: { | ||
labels: data.map((x) => x.t), | ||
datasets: [ | ||
{ | ||
label: "libc", | ||
data: data.map((x) => x.libc_rss), | ||
}, | ||
{ | ||
label: "jemalloc", | ||
data: data.map((x) => x.je_rss), | ||
}, | ||
{ | ||
label: "mimalloc", | ||
data: data.map((x) => x.mi_rss), | ||
}, | ||
{ | ||
label: "tcmalloc", | ||
data: data.map((x) => x.tc_rss), | ||
}, | ||
], | ||
}, | ||
options: { | ||
scales: { | ||
y: { | ||
beginAtZero: true, | ||
}, | ||
}, | ||
}, | ||
}); | ||
</script> | ||
|
||
</body> | ||
|
||
</html> | ||
</body> | ||
</html> |
Oops, something went wrong.