|
Agora
1.2.0
Agora project
|
#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) |
| void bench_mt | ( | int | howmany, |
| std::shared_ptr< spdlog::logger > | log, | ||
| int | thread_count | ||
| ) |


| int count_lines | ( | const char * | filename | ) |


| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |

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


| void verify_file | ( | const char * | filename, |
| int | expected_count | ||
| ) |
