coastline 0.0.4
Loading...
Searching...
No Matches
performance.h File Reference

The statistics of the third state of F: the time of the frames, and the use of the processor, the memory, the GPU, and the memory of the GPU by the game. More...

#include <algorithm>
#include <charconv>
#include <cstdint>
#include <memory>
#include <optional>
#include <span>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for performance.h:

Go to the source code of this file.

Classes

class  coastline::FrameTimings
 One-second timing averages and worst values since collection began. More...
struct  coastline::FrameTimings::Snapshot
 Completed sampling interval averages and extrema since the first recorded frame. More...
class  coastline::PerformanceStats
 Frame timings and system statistics, with memory and GPU sampling on a separate thread. More...

Namespaces

namespace  coastline

Functions

std::optional< std::size_t > coastline::UniqueGpuIndex (std::string_view active, std::span< const std::string > devices)
 Match the active adapter to one provider device, rejecting absent and ambiguous identities.
std::optional< std::uint64_t > coastline::StatmResidentPages (std::string_view text)
std::optional< std::uint64_t > coastline::SmapsGamePssBytes (std::string_view text, std::string_view executable)

Variables

constexpr int coastline::FRAME_RATE_STATES = 3
 The states of F in g_bShowFpsCounter: 0 for off, 1 for the frame rate, and 2 for both.
constexpr int coastline::FRAME_RATE_STATISTICS = 2
 The state of F in g_bShowFpsCounter that shows the statistics beside the frame rate.

Detailed Description

The statistics of the third state of F: the time of the frames, and the use of the processor, the memory, the GPU, and the memory of the GPU by the game.