summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2014-08-02 15:37:28 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2014-10-29 19:24:58 +0100
commit631d74c00f14b88534e11a3ca626c35d6be73755 (patch)
tree7758b42275a28a483f59966a347ca22e48e6baf2 /priv
parent009b50ec3bceee40811351667344b995215a13d5 (diff)
downloadrebar-631d74c00f14b88534e11a3ca626c35d6be73755.tar.gz
Implement eflame -p/--profile support
When -p/--profile is enabled, you can select the profiler as follows: generate flame graph (eflame.svg) from trace (eflame.trace) $ rebar -p compile profiler=eflame generate fprof.analysis $ rebar -p compile generate fprof.analysis $ rebar -p compile profiler=fprof
Diffstat (limited to 'priv')
-rw-r--r--priv/shell-completion/bash/rebar1
-rw-r--r--priv/shell-completion/zsh/_rebar1
2 files changed, 2 insertions, 0 deletions
diff --git a/priv/shell-completion/bash/rebar b/priv/shell-completion/bash/rebar
index 375566c..8a67996 100644
--- a/priv/shell-completion/bash/rebar
+++ b/priv/shell-completion/bash/rebar
@@ -53,6 +53,7 @@ _rebar()
appid= \
overlay_vars= \
previous_release= \
+ profiler= \
nodeid= \
root_dir= \
skip_deps=true \
diff --git a/priv/shell-completion/zsh/_rebar b/priv/shell-completion/zsh/_rebar
index 0218f9e..a994e31 100644
--- a/priv/shell-completion/zsh/_rebar
+++ b/priv/shell-completion/zsh/_rebar
@@ -63,6 +63,7 @@ _rebar () {
'appid[Application id]:' \
'overlay_vars[Overlay variables file]:' \
'previous_release[Previous release path]:' \
+ 'profiler[Select profiler]::flag:(fprof eflame)' \
'nodeid[Node id]:' \
'root_dir[Reltool config root directory]::directory:_files -/' \
'skip_deps[Skip deps]::flag:(true false)' \