[gnome-continuous] tasks/memusage: Use 0.5 for massif threshold
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous] tasks/memusage: Use 0.5 for massif threshold
- Date: Mon, 16 Dec 2013 18:01:14 +0000 (UTC)
commit 7313d6c55b0fe40f9653bb65891a450af7295d4b
Author: Colin Walters <walters verbum org>
Date: Mon Dec 16 13:00:41 2013 -0500
tasks/memusage: Use 0.5 for massif threshold
More detail is better here.
src/js/tasks/task-memusage.js | 2 +-
src/tests/gnome-shell-valgrind | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/js/tasks/task-memusage.js b/src/js/tasks/task-memusage.js
index 3367ef8..ac7819a 100644
--- a/src/js/tasks/task-memusage.js
+++ b/src/js/tasks/task-memusage.js
@@ -68,7 +68,7 @@ const TaskMemusage = new Lang.Class({
print("Copied " + copied.length + " massif data files");
for (let i = 0; i < copied.length; i++) {
let path = copied[i].get_path();
- let context = new GSystem.SubprocessContext({ argv: ['ms_print', path ] });
+ let context = new GSystem.SubprocessContext({ argv: ['ms_print', '--threshold=0.5', path ] });
context.set_stdout_file_path(path + '.txt');
let proc = new GSystem.Subprocess({ context: context });
proc.init(cancellable);
diff --git a/src/tests/gnome-shell-valgrind b/src/tests/gnome-shell-valgrind
index 476af94..7a9c01a 100644
--- a/src/tests/gnome-shell-valgrind
+++ b/src/tests/gnome-shell-valgrind
@@ -75,7 +75,12 @@ let pid = Gio.File.new_for_path('/proc/self').query_info('standard::symlink-targ
Gio.FileQueryInfoFlags.NOFOLLOW_SYMLINKS,
null).get_symlink_target();
let logPath = '/var/tmp/massif-gnome-shell.' + pid;
-let shellProc = Gio.Subprocess.new(['valgrind', '--tool=massif', '--smc-check=all',
+let shellProc = Gio.Subprocess.new(['valgrind', '--tool=massif',
+ '--smc-check=all',
+ '--threshold=0.5',
+ '--alloc-fn=g_malloc',
+ '--alloc-fn=g_malloc0',
+ '--alloc-fn=g_realloc',
'--massif-out-file=' + logPath,
'/usr/bin/gnome-shell.real'],
Gio.SubprocessFlags.STDIN_INHERIT);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]