Agora
1.2.0
Agora project
|
#include "spdlog/spdlog.h"
#include "spdlog/sinks/basic_file_sink.h"
#include "spdlog/sinks/daily_file_sink.h"
#include "spdlog/sinks/null_sink.h"
#include "spdlog/sinks/rotating_file_sink.h"
#include "spdlog/fmt/bundled/format.h"
#include "utils.h"
#include <atomic>
#include <cstdlib>
#include <memory>
#include <string>
#include <thread>
Functions | |
void | bench (int howmany, std::shared_ptr< spdlog::logger > log) |
void | bench_mt (int howmany, std::shared_ptr< spdlog::logger > log, size_t thread_count) |
void | bench_threaded_logging (size_t threads, int iters) |
void | bench_single_threaded (int iters) |
int | main (int argc, char *argv[]) |
Variables | |
static const size_t | file_size = 30 * 1024 * 1024 |
static const size_t | rotating_files = 5 |
static const int | max_threads = 1000 |
void bench | ( | int | howmany, |
std::shared_ptr< spdlog::logger > | log | ||
) |
void bench_mt | ( | int | howmany, |
std::shared_ptr< spdlog::logger > | log, | ||
size_t | thread_count | ||
) |
void bench_single_threaded | ( | int | iters | ) |
void bench_threaded_logging | ( | size_t | threads, |
int | iters | ||
) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
|
static |
|
static |
|
static |