LLVM  9.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.


struct  llvm::Entry
struct  llvm::TimeTraceProfiler


 This class represents lattice values for constants.


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


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...


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