Skip to content

Commit

Permalink
Update memstats.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
SoilRos authored Oct 1, 2024
1 parent aec5e10 commit b15ed4a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions memstats.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <array>
#include <cassert>
#include <chrono>
#include <cmath>
Expand Down Expand Up @@ -188,12 +189,12 @@ static const bool memstats_disable_instrumentation_at_exit = init_memstats_disab
*/

// bin representation of percentage from 0% to 100%
static const std::array<const char*,5> memstats_str_precentage_shadow{" ", "", "", "", ""};
static const std::array<const char*,4> memstats_str_precentage_punctuation{" ", ".", ":", "!"};
static const std::array<const char*,10> memstats_str_precentage_number{"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};
static const std::array<const char*,9> memstats_str_precentage_box{" ", "", "", "", "", "", "", "", ""};
static const std::array<const char*,5> memstats_str_precentage_wire{" ", "-", "~", "=", "#"};
static const std::array<const char*,4> memstats_str_precentage_circle{" ", ".", "o", "O"};
static const std::array<const char*,5> memstats_str_precentage_shadow{" ", "", "", "", ""};
static const std::array<const char*,5> memstats_str_precentage_wire{" ", "-", "~", "=", "#"};
static const std::array<const char*,9> memstats_str_precentage_box{" ", "", "", "", "", "", "", "", ""};
static const std::array<const char*,10> memstats_str_precentage_number{"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};

auto memstats_str_hist_representation()
{
Expand Down

0 comments on commit b15ed4a

Please sign in to comment.