clang-tools 20.0.0git
Public Attributes | List of all members
clang::clangd::PreambleBuildStats Struct Reference

Timings and statistics from the premble build. More...

#include <Preamble.h>

Public Attributes

double TotalBuildTime
 Total wall time it took to build preamble, in seconds.
 
double FileSystemTime
 Time spent in filesystem operations during the build, in seconds.
 
size_t BuildSize
 Estimate of the memory used while building the preamble.
 
size_t SerializedSize
 The serialized size of the preamble.
 

Detailed Description

Timings and statistics from the premble build.

Unlike PreambleData, these do not need to be stored for later, but can be useful for logging, metrics, etc.

Definition at line 137 of file Preamble.h.

Member Data Documentation

◆ BuildSize

size_t clang::clangd::PreambleBuildStats::BuildSize

Estimate of the memory used while building the preamble.

This memory has been released when buildPreamble returns. For example, this includes the size of the in-memory AST (ASTContext).

Definition at line 146 of file Preamble.h.

◆ FileSystemTime

double clang::clangd::PreambleBuildStats::FileSystemTime

Time spent in filesystem operations during the build, in seconds.

Definition at line 141 of file Preamble.h.

Referenced by clang::clangd::buildPreamble().

◆ SerializedSize

size_t clang::clangd::PreambleBuildStats::SerializedSize

The serialized size of the preamble.

This storage is needed while the preamble is used (but may be on disk).

Definition at line 149 of file Preamble.h.

Referenced by clang::clangd::buildPreamble().

◆ TotalBuildTime

double clang::clangd::PreambleBuildStats::TotalBuildTime

Total wall time it took to build preamble, in seconds.

Definition at line 139 of file Preamble.h.

Referenced by clang::clangd::buildPreamble().


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