LLVM  10.0.0svn
Classes | Namespaces | Typedefs | Functions | Variables
TimeProfiler.cpp File Reference
#include "llvm/Support/TimeProfiler.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/JSON.h"
#include <cassert>
#include <chrono>
#include <string>
#include <vector>
Include dependency graph for TimeProfiler.cpp:

Go to the source code of this file.

Classes

struct  llvm::Entry
 
struct  llvm::TimeTraceProfiler
 

Namespaces

 llvm
 This class represents lattice values for constants.
 

Typedefs

typedef duration< steady_clock::rep, steady_clock::period > llvm::DurationType
 
typedef std::pair< size_t, DurationType > llvm::CountAndDurationType
 
typedef std::pair< std::string, CountAndDurationType > llvm::NameAndCountAndDurationType
 

Functions

void llvm::timeTraceProfilerInitialize ()
 Initialize the time trace profiler. More...
 
void llvm::timeTraceProfilerCleanup ()
 Cleanup the time trace profiler, if it was initialized. More...
 
void llvm::timeTraceProfilerWrite (raw_pwrite_stream &OS)
 Write profiling data to output file. More...
 
void llvm::timeTraceProfilerBegin (StringRef Name, StringRef Detail)
 Manually begin a time section, with the given Name and Detail. More...
 
void llvm::timeTraceProfilerBegin (StringRef Name, llvm::function_ref< std::string()> Detail)
 
void llvm::timeTraceProfilerEnd ()
 Manually end the last time section. More...
 

Variables

static cl::opt< unsignedllvm::TimeTraceGranularity ("time-trace-granularity", cl::desc("Minimum time granularity (in microseconds) traced by time profiler"), cl::init(500))