From 10166c74683ccc4680c5db8437cb43bc2b8bb065 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Fri, 23 Mar 2018 21:55:48 +0000 Subject: [Commands] Add a (currently empty) `stats` command. This one will be used to print statistics about lldb sessions (including, e.g. number of expression evaluation succeeded or failed). I decided to commit the skeleton first so that we have a clean reference on how a command should be implemented. My future commits are going to populate this command and test it. llvm-svn: 328378 --- lldb/source/Commands/CommandObjectStats.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lldb/source/Commands/CommandObjectStats.h (limited to 'lldb/source/Commands/CommandObjectStats.h') diff --git a/lldb/source/Commands/CommandObjectStats.h b/lldb/source/Commands/CommandObjectStats.h new file mode 100644 index 00000000000..b71fac4613c --- /dev/null +++ b/lldb/source/Commands/CommandObjectStats.h @@ -0,0 +1,27 @@ +//===-- CommandObjectStats.h ------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef liblldb_CommandObjectStats_h_ +#define liblldb_CommandObjectStats_h_ + +#include "lldb/Interpreter/CommandObject.h" + +namespace lldb_private { +class CommandObjectStats : public CommandObjectParsed { +public: + CommandObjectStats(CommandInterpreter &interpreter); + + ~CommandObjectStats() override; + +protected: + bool DoExecute(Args &command, CommandReturnObject &result) override; +}; +} // namespace lldb_private + +#endif // liblldb_CommandObjectLanguage_h_ -- cgit v1.2.3