From d86dc62c1642b0a71c6071571542b718ab834d14 Mon Sep 17 00:00:00 2001
From: Morris Jette <jette@schedmd.com>
Date: Mon, 24 Mar 2014 15:40:27 -0700
Subject: [PATCH] Describe how to use gprof

---
 BUILD.NOTES | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/BUILD.NOTES b/BUILD.NOTES
index a16d6d26a75..5bc1331bccc 100644
--- a/BUILD.NOTES
+++ b/BUILD.NOTES
@@ -239,6 +239,11 @@ For memory leaks (for AIX use zerofault, zf; for linux use valgrind)
  - Examine the end of the log files for leaks. pthread_create() and dlopen()
    have small memory leaks on some systems, which do not grow over time
 
+Job profiling:
+ - "export CFLAGS=-pg", then run "configure" and "make install" as usual.
+ - Run the slurm daemons through a stress test and exit normally
+ - Run "gprof [executable-file] >outfile"
+
 Before new major release:
  - Test on ia64, i386, x86_64, BGL, AIX, OSX, XCPU
  - Test on Elan and IB switches
-- 
GitLab