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>

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 87 of file Statistics.h.

Constructor & Destructor Documentation

◆ StatsSuccessFail()

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

Definition at line 88 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 35 of file Statistics.cpp.

References failures, and successes.

Referenced by lldb_private::TargetStats::ToJSON().

Member Data Documentation

◆ failures

uint32_t lldb_private::StatsSuccessFail::failures = 0

Definition at line 96 of file Statistics.h.

Referenced by NotifyFailure(), and ToJSON().

◆ name

std::string lldb_private::StatsSuccessFail::name

Definition at line 94 of file Statistics.h.

Referenced by lldb_private::TargetStats::ToJSON().

◆ successes

uint32_t lldb_private::StatsSuccessFail::successes = 0

Definition at line 95 of file Statistics.h.

Referenced by NotifySuccess(), and ToJSON().


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