Celeritas  0.5.0-86+4a8eea4
Functions
MemRegistryIO.json.hh File Reference
#include <nlohmann/json.hpp>
#include "MemRegistry.hh"
This graph shows which files directly or indirectly include this file:

Functions

void celeritas::to_json (nlohmann::json &j, MemUsageEntry const &entry)
 Write one kernel's metadata to JSON. More...
 
void celeritas::to_json (nlohmann::json &j, MemRegistry const &mr)
 Write kernel metadata out to JSON.
 

Function Documentation

◆ to_json()

void celeritas::to_json ( nlohmann::json &  j,
MemUsageEntry const &  entry 
)

Write one kernel's metadata to JSON.

If the registry is dumped before a "scoped memory" saves the memory results, no entries will be written. Parent indices are only written for child nodes.