aboutsummaryrefslogtreecommitdiff
path: root/utils/bin/firrtl-profiling
diff options
context:
space:
mode:
Diffstat (limited to 'utils/bin/firrtl-profiling')
-rwxr-xr-xutils/bin/firrtl-profiling7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/bin/firrtl-profiling b/utils/bin/firrtl-profiling
new file mode 100755
index 00000000..5aa73e00
--- /dev/null
+++ b/utils/bin/firrtl-profiling
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# This may be a brittle way to find $(root_dir)/utils/bin, is there a better way?
+path=`dirname "$0"`
+cmd="java -agentlib:hprof=cpu=samples,depth=100,interval=7,lineno=y,thread=y,file=output.hprof -cp ${path}/firrtl.jar firrtl.Driver ${@:1}"
+eval $cmd
+