Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
EfesX committed Feb 27, 2025
1 parent ffca034 commit 91815d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/benchmark/benchmark.h
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ namespace benchmark {
class BenchmarkReporter;
class State;

typedef int64_t IterationCount;
using IterationCount = int64_t;

// Define alias of Setup/Teardown callback function type
using callback_function = std::function<void(const benchmark::State&)>;
Expand Down
2 changes: 1 addition & 1 deletion src/json_reporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ void JSONReporter::PrintRunData(Run const& run) {
}

if (run.memory_result.memory_iterations > 0) {
const MemoryManager::Result& memory_result{run.memory_result};
const auto& memory_result = run.memory_result;
out << ",\n" << indent << FormatKV("allocs_per_iter", run.allocs_per_iter);
out << ",\n"
<< indent << FormatKV("max_bytes_used", memory_result.max_bytes_used);
Expand Down

0 comments on commit 91815d8

Please sign in to comment.