Agora  1.2.0
Agora project
async_bench.cpp File Reference
#include "spdlog/spdlog.h"
#include "spdlog/async.h"
#include "spdlog/sinks/basic_file_sink.h"
#include "spdlog/fmt/bundled/format.h"
#include "utils.h"
#include <atomic>
#include <iostream>
#include <memory>
#include <string>
#include <thread>
Include dependency graph for async_bench.cpp:

Functions

void bench_mt (int howmany, std::shared_ptr< spdlog::logger > log, int thread_count)
 
int count_lines (const char *filename)
 
void verify_file (const char *filename, int expected_count)
 
int main (int argc, char *argv[])
 
void thread_fun (std::shared_ptr< spdlog::logger > logger, int howmany)
 

Function Documentation

◆ bench_mt()

void bench_mt ( int  howmany,
std::shared_ptr< spdlog::logger log,
int  thread_count 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ count_lines()

int count_lines ( const char *  filename)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

◆ thread_fun()

void thread_fun ( std::shared_ptr< spdlog::logger logger,
int  howmany 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ verify_file()

void verify_file ( const char *  filename,
int  expected_count 
)
Here is the call graph for this function: