FastMM documentation
FastMM C++ API 0.6.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::KillStateStore Class Reference

#include <fastmm/core/session_state.hpp>

Static Public Member Functions

static std::string default_path (std::string_view journal_dir, std::string_view engine_name)
 "\<journal_dir\>/\<engine name\>.kill".
 
static Result< KillState, std::string > load (const std::string &path)
 A missing file is a cleared state; a file that cannot be read or parsed is an error.
 
static Result< void, std::string > store (const std::string &path, const KillState &s)
 
static Result< void, std::string > clear (const std::string &path)
 Removes the file (an operator clearing a latched trip and the loss budget with it).
 

Member Function Documentation

◆ default_path()

static std::string fastmm::KillStateStore::default_path ( std::string_view  journal_dir,
std::string_view  engine_name 
)
static

"\<journal_dir\>/\<engine name\>.kill".

◆ load()

static Result< KillState, std::string > fastmm::KillStateStore::load ( const std::string &  path)
static

A missing file is a cleared state; a file that cannot be read or parsed is an error.

◆ store()

static Result< void, std::string > fastmm::KillStateStore::store ( const std::string &  path,
const KillState &  s 
)
static

◆ clear()

static Result< void, std::string > fastmm::KillStateStore::clear ( const std::string &  path)
static

Removes the file (an operator clearing a latched trip and the loss budget with it).