LLDB  mainline
Public Member Functions | Public Attributes | List of all members
lldb_private::StatsSuccessFail Struct Reference

A class to count success/fail statistics. More...

#include <Statistics.h>

Collaboration diagram for lldb_private::StatsSuccessFail:
Collaboration graph
[legend]

Public Member Functions

 StatsSuccessFail (llvm::StringRef n)
 
void NotifySuccess ()
 
void NotifyFailure ()
 
llvm::json::Value ToJSON () const
 

Public Attributes

std::string name
 
uint32_t successes = 0
 
uint32_t failures = 0
 

Detailed Description

A class to count success/fail statistics.

Definition at line 84 of file Statistics.h.

Constructor & Destructor Documentation

◆ StatsSuccessFail()

lldb_private::StatsSuccessFail::StatsSuccessFail ( llvm::StringRef  n)
inline

Definition at line 85 of file Statistics.h.

Member Function Documentation

◆ NotifyFailure()

void lldb_private::StatsSuccessFail::NotifyFailure ( )
inline

◆ NotifySuccess()

void lldb_private::StatsSuccessFail::NotifySuccess ( )
inline

◆ ToJSON()

json::Value StatsSuccessFail::ToJSON ( ) const

Definition at line 32 of file Statistics.cpp.

Member Data Documentation

◆ failures

uint32_t lldb_private::StatsSuccessFail::failures = 0

Definition at line 93 of file Statistics.h.

Referenced by NotifyFailure().

◆ name

std::string lldb_private::StatsSuccessFail::name

Definition at line 91 of file Statistics.h.

◆ successes

uint32_t lldb_private::StatsSuccessFail::successes = 0

Definition at line 92 of file Statistics.h.

Referenced by NotifySuccess().


The documentation for this struct was generated from the following files: