Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
shambase::details::ProfileEntry Struct Reference

Structure to hold data for a profiling entry. More...

+ Collaboration diagram for shambase::details::ProfileEntry:

Public Member Functions

std::string format ()
 Format the profile entry as a JSON string.
 

Public Attributes

f64 time_start
 Start time of the profiling entry (in sec since program start)
 
f64 time_end
 End time of the profiling entry (in sec since program start)
 
std::string entry_name
 Name of the profiling entry.
 

Detailed Description

Structure to hold data for a profiling entry.

This structure holds the start and end time of a profiling entry, and the name of the entry.

Definition at line 153 of file stacktrace.cpp.

Member Function Documentation

◆ format()

std::string shambase::details::ProfileEntry::format ( )
inline

Format the profile entry as a JSON string.

Returns
std::string JSON string representation of the profile entry

Definition at line 163 of file stacktrace.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ entry_name

std::string shambase::details::ProfileEntry::entry_name

Name of the profiling entry.

Definition at line 156 of file stacktrace.cpp.

◆ time_end

f64 shambase::details::ProfileEntry::time_end

End time of the profiling entry (in sec since program start)

Definition at line 155 of file stacktrace.cpp.

◆ time_start

f64 shambase::details::ProfileEntry::time_start

Start time of the profiling entry (in sec since program start)

Definition at line 154 of file stacktrace.cpp.


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