Files
clang-p2996/lldb/source/Commands/CommandObjectStats.cpp
Davide Italiano 10166c7468 [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.

<rdar://problem/36555975>

llvm-svn: 328378
2018-03-23 21:55:48 +00:00

29 lines
900 B
C++

//===-- CommandObjectStats.cpp ----------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "CommandObjectStats.h"
#include "lldb/Host/Host.h"
#include "lldb/Interpreter/CommandInterpreter.h"
#include "lldb/Interpreter/CommandReturnObject.h"
using namespace lldb;
using namespace lldb_private;
CommandObjectStats::CommandObjectStats(CommandInterpreter &interpreter)
: CommandObjectParsed(
interpreter, "stats", "Print statistics about a debugging session",
nullptr) {
}
bool CommandObjectStats::DoExecute(Args &command, CommandReturnObject &result) {
return true;
}
CommandObjectStats::~CommandObjectStats() {}