aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandObject.cpp
diff options
context:
space:
mode:
authorjeffreytan81 <jeffreytan@meta.com>2024-02-05 13:17:29 -0800
committerGitHub <noreply@github.com>2024-02-05 13:17:29 -0800
commit76706090c2f672ae933798292bfa889f9e3dac3d (patch)
treed3466a91127635d5c46bbb7868fb17693784669b /lldb/source/Interpreter/CommandObject.cpp
parent4b6062619acf1cdc7b426520dd908d9fab70ed49 (diff)
downloadllvm-76706090c2f672ae933798292bfa889f9e3dac3d.zip
llvm-76706090c2f672ae933798292bfa889f9e3dac3d.tar.gz
llvm-76706090c2f672ae933798292bfa889f9e3dac3d.tar.bz2
Add commands frequency to statistics dump (#80375)
Adding command interpreter statistics into "statistics dump" command so that we can track the command usage frequency for telemetry purpose. This is useful to answer questions like what is the most frequently used lldb commands across all our users. --------- Co-authored-by: jeffreytan81 <jeffreytan@fb.com>
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObject.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp
index 1ff9774..6324c7e 100644
--- a/lldb/source/Interpreter/CommandObject.cpp
+++ b/lldb/source/Interpreter/CommandObject.cpp
@@ -748,6 +748,7 @@ void CommandObjectParsed::Execute(const char *args_string,
Cleanup();
return;
}
+ m_interpreter.IncreaseCommandUsage(*this);
DoExecute(cmd_args, result);
}
}