[gnome-software] trivial: Add a massif build target for profiling
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Add a massif build target for profiling
- Date: Mon, 21 Nov 2016 09:02:20 +0000 (UTC)
commit 7a9c98a809f64f45b65d45d74aa93a7c349d9b96
Author: Richard Hughes <richard hughsie com>
Date: Thu Nov 17 21:00:29 2016 +0000
trivial: Add a massif build target for profiling
src/Makefile.am | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index b93f03b..121b5a7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -412,6 +412,13 @@ clean-local:
rm -f *.1
rm -f manpage.*
+massif:
+ make && \
+ valgrind --massif-out-file=massif.out --threshold=0.1 --tool=massif \
+ ./gnome-software-cmd search gimp --refine-flags=icon --show-results && \
+ ms_print massif.out > massif.txt && \
+ head -n 30 massif.txt
+
CLEANFILES = \
$(BUILT_SOURCES) \
gnome-software.1 \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]