spdlog
Loading...
Searching...
No Matches
Functions
async_bench.cpp File Reference

Go to the source code of this file.

#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>

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 
)

Definition at line 160 of file async_bench.cpp.

◆ count_lines()

int count_lines ( const char filename)

Definition at line 39 of file async_bench.cpp.

◆ main()

int main ( int  argc,
char argv[] 
)

Definition at line 70 of file async_bench.cpp.

◆ thread_fun()

void thread_fun ( std::shared_ptr< spdlog::logger logger,
int  howmany 
)

Definition at line 152 of file async_bench.cpp.

◆ verify_file()

void verify_file ( const char filename,
int  expected_count 
)

Definition at line 54 of file async_bench.cpp.