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

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

#include <Preamble.h>

Collaboration diagram for clang::clangd::PreambleBuildStats:
Collaboration graph
[legend]

Public Attributes

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

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 81 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 90 of file Preamble.h.

◆ FileSystemTime

double clang::clangd::PreambleBuildStats::FileSystemTime

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

Definition at line 85 of file Preamble.h.

◆ 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 93 of file Preamble.h.

◆ TotalBuildTime

double clang::clangd::PreambleBuildStats::TotalBuildTime

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

Definition at line 83 of file Preamble.h.


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