LLVMFuzzerTestOneInput:
   22|    512|extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
   23|    512|  static std::shared_ptr<spdlog::logger> my_logger;
   24|    512|  if (!my_logger.get()) {
  ------------------
  |  Branch (24:7): [True: 1, False: 511]
  ------------------
   25|      1|    my_logger = spdlog::basic_logger_mt("basic_logger", "/dev/null");
   26|      1|    spdlog::set_default_logger(my_logger);
   27|      1|  }
   28|       |
   29|    512|  if (size == 0) {
  ------------------
  |  Branch (29:7): [True: 0, False: 512]
  ------------------
   30|      0|    return 0;
   31|      0|  }
   32|       |
   33|    512|  FuzzedDataProvider stream(data, size);
   34|       |
   35|    512|  const uint16_t size_arg = stream.ConsumeIntegral<uint16_t>();
   36|       |
   37|    512|  spdlog::enable_backtrace(size_arg);
   38|  15.4M|  for(int i=0; i<size_arg; i++){
  ------------------
  |  Branch (38:16): [True: 15.4M, False: 512]
  ------------------
   39|  15.4M|    spdlog::debug(stream.ConsumeRandomLengthString(size));
   40|  15.4M|  }
   41|    512|  spdlog::dump_backtrace();
   42|    512|  return 0;
   43|    512|}

_ZN6spdlog5level14to_string_viewENS0_10level_enumE:
   24|  15.4M|{
   25|  15.4M|    return level_string_views[l];
   26|  15.4M|}

_ZN6spdlog19file_event_handlersC2Ev:
  336|      1|    {}
_ZN6spdlog7details11make_uniqueINS0_14full_formatterEJNS0_12padding_infoEEEENSt3__110unique_ptrIT_NS4_14default_deleteIS6_EEEEDpOT0_:
  395|      3|{
  396|      3|    static_assert(!std::is_array<T>::value, "arrays not supported");
  397|      3|    return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
  398|      3|}
_ZNK6spdlog10source_loc5emptyEv:
  321|  15.4M|    {
  322|  15.4M|        return line == 0;
  323|  15.4M|    }
_ZN6spdlog7details11make_uniqueINS_17pattern_formatterEJEEENSt3__110unique_ptrIT_NS3_14default_deleteIS5_EEEEDpOT0_:
  395|      2|{
  396|      2|    static_assert(!std::is_array<T>::value, "arrays not supported");
  397|      2|    return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
  398|      2|}
_ZN6spdlog7details11make_uniqueINS0_14full_formatterEJRNS0_12padding_infoEEEENSt3__110unique_ptrIT_NS5_14default_deleteIS7_EEEEDpOT0_:
  395|      1|{
  396|      1|    static_assert(!std::is_array<T>::value, "arrays not supported");
  397|      1|    return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
  398|      1|}
_ZN6spdlog10source_locC2Ev:
  313|  30.8M|    SPDLOG_CONSTEXPR source_loc() = default;
_ZN6spdlog7details11make_uniqueINS_17pattern_formatterEJRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKNS_17pattern_time_typeESB_NS3_13unordered_mapIcNS3_10unique_ptrINS_21custom_flag_formatterENS3_14default_deleteISH_EEEENS3_4hashIcEENS3_8equal_toIcEENS7_INS3_4pairIKcSK_EEEEEEEEENSG_IT_NSI_ISU_EEEEDpOT0_:
  395|      1|{
  396|      1|    static_assert(!std::is_array<T>::value, "arrays not supported");
  397|      1|    return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
  398|      1|}

_ZN6spdlog7details10backtracer6enableEm:
   34|    512|{
   35|    512|    std::lock_guard<std::mutex> lock{mutex_};
   36|    512|    enabled_.store(true, std::memory_order_relaxed);
   37|    512|    messages_ = circular_q<log_msg_buffer>{size};
   38|    512|}
_ZNK6spdlog7details10backtracer7enabledEv:
   47|  15.4M|{
   48|  15.4M|    return enabled_.load(std::memory_order_relaxed);
   49|  15.4M|}
_ZNK6spdlog7details10backtracer5emptyEv:
   58|    512|{
   59|    512|    std::lock_guard<std::mutex> lock{mutex_};
   60|    512|    return messages_.empty();
   61|    512|}
_ZN6spdlog7details10backtracer11foreach_popENSt3__18functionIFvRKNS0_7log_msgEEEE:
   65|    511|{
   66|    511|    std::lock_guard<std::mutex> lock{mutex_};
   67|  15.4M|    while (!messages_.empty())
  ------------------
  |  Branch (67:12): [True: 15.4M, False: 511]
  ------------------
   68|  15.4M|    {
   69|  15.4M|        auto &front_msg = messages_.front();
   70|  15.4M|        fun(front_msg);
   71|  15.4M|        messages_.pop_front();
   72|  15.4M|    }
   73|    511|}
_ZN6spdlog7details10backtracer9push_backERKNS0_7log_msgE:
   52|  15.4M|{
   53|  15.4M|    std::lock_guard<std::mutex> lock{mutex_};
   54|  15.4M|    messages_.push_back(log_msg_buffer{msg});
   55|  15.4M|}

_ZN6spdlog7details10backtracerC2Ev:
   25|      2|    backtracer() = default;

_ZN6spdlog7details10circular_qINS0_14log_msg_bufferEEC2Ev:
   25|      2|    circular_q() = default;
_ZN6spdlog7details10circular_qINS0_14log_msg_bufferEEC2Em:
   30|    512|    {}
_ZN6spdlog7details10circular_qINS0_14log_msg_bufferEEaSEOS3_:
   43|    512|    {
   44|    512|        copy_moveable(std::move(other));
   45|    512|        return *this;
   46|    512|    }
_ZN6spdlog7details10circular_qINS0_14log_msg_bufferEE13copy_moveableEOS3_:
  132|    512|    {
  133|    512|        max_items_ = other.max_items_;
  134|    512|        head_ = other.head_;
  135|    512|        tail_ = other.tail_;
  136|    512|        overrun_counter_ = other.overrun_counter_;
  137|    512|        v_ = std::move(other.v_);
  138|       |
  139|       |        // put &&other in disabled, but valid state
  140|    512|        other.max_items_ = 0;
  141|    512|        other.head_ = other.tail_ = 0;
  142|    512|        other.overrun_counter_ = 0;
  143|    512|    }
_ZNK6spdlog7details10circular_qINS0_14log_msg_bufferEE5emptyEv:
  105|  15.4M|    {
  106|  15.4M|        return tail_ == head_;
  107|  15.4M|    }
_ZN6spdlog7details10circular_qINS0_14log_msg_bufferEE5frontEv:
   72|  15.4M|    {
   73|  15.4M|        return v_[head_];
   74|  15.4M|    }
_ZN6spdlog7details10circular_qINS0_14log_msg_bufferEE9pop_frontEv:
  100|  15.4M|    {
  101|  15.4M|        head_ = (head_ + 1) % max_items_;
  102|  15.4M|    }
_ZN6spdlog7details10circular_qINS0_14log_msg_bufferEE9push_backEOS2_:
   50|  15.4M|    {
   51|  15.4M|        if (max_items_ > 0)
  ------------------
  |  Branch (51:13): [True: 15.4M, False: 0]
  ------------------
   52|  15.4M|        {
   53|  15.4M|            v_[tail_] = std::move(item);
   54|  15.4M|            tail_ = (tail_ + 1) % max_items_;
   55|       |
   56|  15.4M|            if (tail_ == head_) // overrun last item if full
  ------------------
  |  Branch (56:17): [True: 0, False: 15.4M]
  ------------------
   57|      0|            {
   58|      0|                head_ = (head_ + 1) % max_items_;
   59|      0|                ++overrun_counter_;
   60|      0|            }
   61|  15.4M|        }
   62|  15.4M|    }

_ZN6spdlog7details13console_mutex5mutexEv:
   16|      1|    {
   17|      1|        static mutex_t s_mutex;
   18|      1|        return s_mutex;
   19|      1|    }

_ZN6spdlog7details11file_helperC2ERKNS_19file_event_handlersE:
   25|      1|{}
_ZN6spdlog7details11file_helper4openERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEb:
   33|      1|{
   34|      1|    close();
   35|      1|    filename_ = fname;
   36|       |
   37|      1|    auto *mode = SPDLOG_FILENAME_T("ab");
  ------------------
  |  |  128|      1|#    define SPDLOG_FILENAME_T(s) s
  ------------------
   38|      1|    auto *trunc_mode = SPDLOG_FILENAME_T("wb");
  ------------------
  |  |  128|      1|#    define SPDLOG_FILENAME_T(s) s
  ------------------
   39|       |
   40|      1|    if (event_handlers_.before_open)
  ------------------
  |  Branch (40:9): [True: 0, False: 1]
  ------------------
   41|      0|    {
   42|      0|        event_handlers_.before_open(filename_);
   43|      0|    }
   44|      1|    for (int tries = 0; tries < open_tries_; ++tries)
  ------------------
  |  Branch (44:25): [True: 1, False: 0]
  ------------------
   45|      1|    {
   46|       |        // create containing folder if not exists already.
   47|      1|        os::create_dir(os::dir_name(fname));
   48|      1|        if (truncate)
  ------------------
  |  Branch (48:13): [True: 0, False: 1]
  ------------------
   49|      0|        {
   50|       |            // Truncate by opening-and-closing a tmp file in "wb" mode, always
   51|       |            // opening the actual log-we-write-to in "ab" mode, since that
   52|       |            // interacts more politely with eternal processes that might
   53|       |            // rotate/truncate the file underneath us.
   54|      0|            std::FILE *tmp;
   55|      0|            if (os::fopen_s(&tmp, fname, trunc_mode))
  ------------------
  |  Branch (55:17): [True: 0, False: 0]
  ------------------
   56|      0|            {
   57|      0|                continue;
   58|      0|            }
   59|      0|            std::fclose(tmp);
   60|      0|        }
   61|      1|        if (!os::fopen_s(&fd_, fname, mode))
  ------------------
  |  Branch (61:13): [True: 1, False: 0]
  ------------------
   62|      1|        {
   63|      1|            if (event_handlers_.after_open)
  ------------------
  |  Branch (63:17): [True: 0, False: 1]
  ------------------
   64|      0|            {
   65|      0|                event_handlers_.after_open(filename_, fd_);
   66|      0|            }
   67|      1|            return;
   68|      1|        }
   69|       |
   70|      0|        details::os::sleep_for_millis(open_interval_);
   71|      0|    }
   72|       |
   73|      0|    throw_spdlog_ex("Failed opening file " + os::filename_to_str(filename_) + " for writing", errno);
   74|      0|}
_ZN6spdlog7details11file_helper5closeEv:
  102|      2|{
  103|      2|    if (fd_ != nullptr)
  ------------------
  |  Branch (103:9): [True: 1, False: 1]
  ------------------
  104|      1|    {
  105|      1|        if (event_handlers_.before_close)
  ------------------
  |  Branch (105:13): [True: 0, False: 1]
  ------------------
  106|      0|        {
  107|      0|            event_handlers_.before_close(filename_, fd_);
  108|      0|        }
  109|       |
  110|      1|        std::fclose(fd_);
  111|      1|        fd_ = nullptr;
  112|       |
  113|      1|        if (event_handlers_.after_close)
  ------------------
  |  Branch (113:13): [True: 0, False: 1]
  ------------------
  114|      0|        {
  115|      0|            event_handlers_.after_close(filename_);
  116|      0|        }
  117|      1|    }
  118|      2|}
_ZN6spdlog7details11file_helperD2Ev:
   28|      1|{
   29|      1|    close();
   30|      1|}
_ZN6spdlog7details11file_helper5writeERKN3fmt2v919basic_memory_bufferIcLm250ENSt3__19allocatorIcEEEE:
  121|  15.4M|{
  122|  15.4M|    size_t msg_size = buf.size();
  123|  15.4M|    auto data = buf.data();
  124|  15.4M|    if (std::fwrite(data, 1, msg_size, fd_) != msg_size)
  ------------------
  |  Branch (124:9): [True: 0, False: 15.4M]
  ------------------
  125|      0|    {
  126|      0|        throw_spdlog_ex("Failed writing to file " + os::filename_to_str(filename_), errno);
  127|      0|    }
  128|  15.4M|}

_ZN6spdlog7details10fmt_helper10append_intIiEEvT_RN3fmt2v919basic_memory_bufferIcLm250ENSt3__19allocatorIcEEEE:
   48|     35|{
   49|     35|    fmt::format_int i(n);
   50|     35|    dest.append(i.data(), i.data() + i.size());
   51|     35|}
_ZN6spdlog7details10fmt_helper4pad2EiRN3fmt2v919basic_memory_bufferIcLm250ENSt3__19allocatorIcEEEE:
   97|    175|{
   98|    175|    if (n >= 0 && n < 100) // 0-99
  ------------------
  |  Branch (98:9): [True: 175, False: 0]
  |  Branch (98:19): [True: 175, False: 0]
  ------------------
   99|    175|    {
  100|    175|        dest.push_back(static_cast<char>('0' + n / 10));
  101|    175|        dest.push_back(static_cast<char>('0' + n % 10));
  102|    175|    }
  103|      0|    else // unlikely, but just in case, let fmt deal with it
  104|      0|    {
  105|      0|        fmt_lib::format_to(std::back_inserter(dest), SPDLOG_FMT_STRING("{:02}"), n);
  ------------------
  |  |   54|      0|#    define SPDLOG_FMT_STRING(format_string) FMT_STRING(format_string)
  |  |  ------------------
  |  |  |  | 1772|      0|#define FMT_STRING(s) FMT_STRING_IMPL(s, fmt::detail::compile_string, )
  |  |  |  |  ------------------
  |  |  |  |  |  | 1749|      0|  [] {                                                                        \
  |  |  |  |  |  | 1750|      0|    /* Use the hidden visibility as a workaround for a GCC bug (#1973). */    \
  |  |  |  |  |  | 1751|      0|    /* Use a macro-like name to avoid shadowing warnings. */                  \
  |  |  |  |  |  | 1752|      0|    struct FMT_GCC_VISIBILITY_HIDDEN FMT_COMPILE_STRING : base {              \
  |  |  |  |  |  | 1753|      0|      using char_type FMT_MAYBE_UNUSED = fmt::remove_cvref_t<decltype(s[0])>; \
  |  |  |  |  |  | 1754|      0|      FMT_MAYBE_UNUSED FMT_CONSTEXPR explicit                                 \
  |  |  |  |  |  | 1755|      0|      operator fmt::basic_string_view<char_type>() const {                    \
  |  |  |  |  |  | 1756|      0|        return fmt::detail_exported::compile_string_to_view<char_type>(s);    \
  |  |  |  |  |  | 1757|      0|      }                                                                       \
  |  |  |  |  |  | 1758|      0|    };                                                                        \
  |  |  |  |  |  | 1759|      0|    return FMT_COMPILE_STRING();                                              \
  |  |  |  |  |  | 1760|      0|  }()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  106|      0|    }
  107|    175|}
_ZN6spdlog7details10fmt_helper13time_fractionINSt3__16chrono8durationIxNS3_5ratioILl1ELl1000EEEEEEET_NS4_10time_pointINS4_12system_clockENS5_IxNS6_ILl1ELl1000000EEEEEEE:
  154|  15.4M|{
  155|  15.4M|    using std::chrono::duration_cast;
  156|  15.4M|    using std::chrono::seconds;
  157|  15.4M|    auto duration = tp.time_since_epoch();
  158|  15.4M|    auto secs = duration_cast<seconds>(duration);
  159|  15.4M|    return duration_cast<ToDuration>(duration) - duration_cast<ToDuration>(secs);
  160|  15.4M|}
_ZN6spdlog7details10fmt_helper4pad3IjEEvT_RN3fmt2v919basic_memory_bufferIcLm250ENSt3__19allocatorIcEEEE:
  122|  15.4M|{
  123|  15.4M|    static_assert(std::is_unsigned<T>::value, "pad3 must get unsigned T");
  124|  15.4M|    if (n < 1000)
  ------------------
  |  Branch (124:9): [True: 15.4M, False: 0]
  ------------------
  125|  15.4M|    {
  126|  15.4M|        dest.push_back(static_cast<char>(n / 100 + '0'));
  127|  15.4M|        n = n % 100;
  128|  15.4M|        dest.push_back(static_cast<char>((n / 10) + '0'));
  129|  15.4M|        dest.push_back(static_cast<char>((n % 10) + '0'));
  130|  15.4M|    }
  131|      0|    else
  132|      0|    {
  133|      0|        append_int(n, dest);
  134|      0|    }
  135|  15.4M|}
_ZN6spdlog7details10fmt_helper18append_string_viewEN3fmt2v917basic_string_viewIcEERNS3_19basic_memory_bufferIcLm250ENSt3__19allocatorIcEEEE:
   22|  61.6M|{
   23|  61.6M|    auto *buf_ptr = view.data();
   24|  61.6M|    dest.append(buf_ptr, buf_ptr + view.size());
   25|  61.6M|}

_ZN6spdlog7details7log_msgC2EN3fmt2v917basic_string_viewIcEENS_5level10level_enumES5_:
   34|  1.02k|{}
_ZN6spdlog7details7log_msgC2ENSt3__16chrono10time_pointINS3_12system_clockENS3_8durationIxNS2_5ratioILl1ELl1000000EEEEEEENS_10source_locEN3fmt2v917basic_string_viewIcEENS_5level10level_enumESF_:
   25|  15.4M|{}
_ZN6spdlog7details7log_msgC2ENS_10source_locEN3fmt2v917basic_string_viewIcEENS_5level10level_enumES6_:
   30|  15.4M|{}

_ZN6spdlog7details7log_msgC2Ev:
   13|  15.4M|    log_msg() = default;

_ZN6spdlog7details14log_msg_buffer19update_string_viewsEv:
   52|  30.8M|{
   53|  30.8M|    logger_name = string_view_t{buffer.data(), logger_name.size()};
   54|  30.8M|    payload = string_view_t{buffer.data() + logger_name.size(), payload.size()};
   55|  30.8M|}
_ZN6spdlog7details14log_msg_bufferaSEOS1_:
   44|  15.4M|{
   45|  15.4M|    log_msg::operator=(other);
   46|  15.4M|    buffer = std::move(other.buffer);
   47|  15.4M|    update_string_views();
   48|  15.4M|    return *this;
   49|  15.4M|}
_ZN6spdlog7details14log_msg_bufferC2ERKNS0_7log_msgE:
   15|  15.4M|{
   16|  15.4M|    buffer.append(logger_name.begin(), logger_name.end());
   17|  15.4M|    buffer.append(payload.begin(), payload.end());
   18|  15.4M|    update_string_views();
   19|  15.4M|}

_ZN6spdlog7details14log_msg_bufferC2Ev:
   20|  15.4M|    log_msg_buffer() = default;

_ZN6spdlog7details2os11in_terminalEP8_IO_FILE:
  462|      1|{
  463|       |
  464|       |#ifdef _WIN32
  465|       |    return ::_isatty(_fileno(file)) != 0;
  466|       |#else
  467|      1|    return ::isatty(fileno(file)) != 0;
  468|      1|#endif
  469|      1|}
_ZN6spdlog7details2os3nowEv:
   78|  15.4M|{
   79|       |
   80|       |#if defined __linux__ && defined SPDLOG_CLOCK_COARSE
   81|       |    timespec ts;
   82|       |    ::clock_gettime(CLOCK_REALTIME_COARSE, &ts);
   83|       |    return std::chrono::time_point<log_clock, typename log_clock::duration>(
   84|       |        std::chrono::duration_cast<typename log_clock::duration>(std::chrono::seconds(ts.tv_sec) + std::chrono::nanoseconds(ts.tv_nsec)));
   85|       |
   86|       |#else
   87|  15.4M|    return log_clock::now();
   88|  15.4M|#endif
   89|  15.4M|}
_ZN6spdlog7details2os9thread_idEv:
  383|  15.4M|{
  384|       |#if defined(SPDLOG_NO_TLS)
  385|       |    return _thread_id();
  386|       |#else // cache thread id in tls
  387|  15.4M|    static thread_local const size_t tid = _thread_id();
  388|  15.4M|    return tid;
  389|  15.4M|#endif
  390|  15.4M|}
_ZN6spdlog7details2os10_thread_idEv:
  337|      1|{
  338|       |#ifdef _WIN32
  339|       |    return static_cast<size_t>(::GetCurrentThreadId());
  340|       |#elif defined(__linux__)
  341|       |#    if defined(__ANDROID__) && defined(__ANDROID_API__) && (__ANDROID_API__ < 21)
  342|       |#        define SYS_gettid __NR_gettid
  343|       |#    endif
  344|      1|    return static_cast<size_t>(::syscall(SYS_gettid));
  345|       |#elif defined(_AIX)
  346|       |    struct __pthrdsinfo buf;
  347|       |    int reg_size = 0;
  348|       |    pthread_t pt = pthread_self();
  349|       |    int retval = pthread_getthrds_np(&pt, PTHRDSINFO_QUERY_TID, &buf, sizeof(buf), NULL, &reg_size);
  350|       |    int tid = (!retval) ? buf.__pi_tid : 0;
  351|       |    return static_cast<size_t>(tid);
  352|       |#elif defined(__DragonFly__) || defined(__FreeBSD__)
  353|       |    return static_cast<size_t>(::pthread_getthreadid_np());
  354|       |#elif defined(__NetBSD__)
  355|       |    return static_cast<size_t>(::_lwp_self());
  356|       |#elif defined(__OpenBSD__)
  357|       |    return static_cast<size_t>(::getthrid());
  358|       |#elif defined(__sun)
  359|       |    return static_cast<size_t>(::thr_self());
  360|       |#elif __APPLE__
  361|       |    uint64_t tid;
  362|       |    // There is no pthread_threadid_np prior to 10.6, and it is not supported on any PPC,
  363|       |    // including 10.6.8 Rosetta. __POWERPC__ is Apple-specific define encompassing ppc and ppc64.
  364|       |#    if (MAC_OS_X_VERSION_MAX_ALLOWED < 1060) || defined(__POWERPC__)
  365|       |        tid = pthread_mach_thread_np(pthread_self());
  366|       |#    elif MAC_OS_X_VERSION_MIN_REQUIRED < 1060
  367|       |        if (&pthread_threadid_np) {
  368|       |            pthread_threadid_np(nullptr, &tid);
  369|       |        } else {
  370|       |            tid = pthread_mach_thread_np(pthread_self());
  371|       |        }
  372|       |#    else
  373|       |        pthread_threadid_np(nullptr, &tid);
  374|       |#    endif
  375|       |    return static_cast<size_t>(tid);
  376|       |#else // Default to standard C++11 (other Unix)
  377|       |    return static_cast<size_t>(std::hash<std::thread::id>()(std::this_thread::get_id()));
  378|       |#endif
  379|      1|}
_ZN6spdlog7details2os9localtimeERKl:
   91|     35|{
   92|       |
   93|       |#ifdef _WIN32
   94|       |    std::tm tm;
   95|       |    ::localtime_s(&tm, &time_tt);
   96|       |#else
   97|     35|    std::tm tm;
   98|     35|    ::localtime_r(&time_tt, &tm);
   99|     35|#endif
  100|     35|    return tm;
  101|     35|}
_ZN6spdlog7details2os10create_dirERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  556|      1|{
  557|      1|    if (path_exists(path))
  ------------------
  |  Branch (557:9): [True: 1, False: 0]
  ------------------
  558|      1|    {
  559|      1|        return true;
  560|      1|    }
  561|       |
  562|      0|    if (path.empty())
  ------------------
  |  Branch (562:9): [True: 0, False: 0]
  ------------------
  563|      0|    {
  564|      0|        return false;
  565|      0|    }
  566|       |
  567|      0|    size_t search_offset = 0;
  568|      0|    do
  569|      0|    {
  570|      0|        auto token_pos = path.find_first_of(folder_seps_filename, search_offset);
  571|       |        // treat the entire path as a folder if no folder separator not found
  572|      0|        if (token_pos == filename_t::npos)
  ------------------
  |  Branch (572:13): [True: 0, False: 0]
  ------------------
  573|      0|        {
  574|      0|            token_pos = path.size();
  575|      0|        }
  576|       |
  577|      0|        auto subdir = path.substr(0, token_pos);
  578|       |
  579|      0|        if (!subdir.empty() && !path_exists(subdir) && !mkdir_(subdir))
  ------------------
  |  Branch (579:13): [True: 0, False: 0]
  |  Branch (579:32): [True: 0, False: 0]
  |  Branch (579:56): [True: 0, False: 0]
  ------------------
  580|      0|        {
  581|      0|            return false; // return error if failed creating dir
  582|      0|        }
  583|      0|        search_offset = token_pos + 1;
  584|      0|    } while (search_offset < path.size());
  ------------------
  |  Branch (584:14): [True: 0, False: 0]
  ------------------
  585|       |
  586|      0|    return true;
  587|      0|}
_ZN6spdlog7details2os11path_existsERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  194|      1|{
  195|       |#ifdef _WIN32
  196|       |#    ifdef SPDLOG_WCHAR_FILENAMES
  197|       |    auto attribs = ::GetFileAttributesW(filename.c_str());
  198|       |#    else
  199|       |    auto attribs = ::GetFileAttributesA(filename.c_str());
  200|       |#    endif
  201|       |    return attribs != INVALID_FILE_ATTRIBUTES;
  202|       |#else // common linux/unix all have the stat system call
  203|      1|    struct stat buffer;
  204|      1|    return (::stat(filename.c_str(), &buffer) == 0);
  205|      1|#endif
  206|      1|}
_ZN6spdlog7details2os8dir_nameERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  595|      1|{
  596|      1|    auto pos = path.find_last_of(folder_seps_filename);
  597|      1|    return pos != filename_t::npos ? path.substr(0, pos) : filename_t{};
  ------------------
  |  Branch (597:12): [True: 1, False: 0]
  ------------------
  598|      1|}
_ZN6spdlog7details2os7fopen_sEPP8_IO_FILERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEESD_:
  130|      1|{
  131|       |#ifdef _WIN32
  132|       |#    ifdef SPDLOG_WCHAR_FILENAMES
  133|       |    *fp = ::_wfsopen((filename.c_str()), mode.c_str(), _SH_DENYNO);
  134|       |#    else
  135|       |    *fp = ::_fsopen((filename.c_str()), mode.c_str(), _SH_DENYNO);
  136|       |#    endif
  137|       |#    if defined(SPDLOG_PREVENT_CHILD_FD)
  138|       |    if (*fp != nullptr)
  139|       |    {
  140|       |        auto file_handle = reinterpret_cast<HANDLE>(_get_osfhandle(::_fileno(*fp)));
  141|       |        if (!::SetHandleInformation(file_handle, HANDLE_FLAG_INHERIT, 0))
  142|       |        {
  143|       |            ::fclose(*fp);
  144|       |            *fp = nullptr;
  145|       |        }
  146|       |    }
  147|       |#    endif
  148|       |#else // unix
  149|       |#    if defined(SPDLOG_PREVENT_CHILD_FD)
  150|       |    const int mode_flag = mode == SPDLOG_FILENAME_T("ab") ? O_APPEND : O_TRUNC;
  151|       |    const int fd = ::open((filename.c_str()), O_CREAT | O_WRONLY | O_CLOEXEC | mode_flag, mode_t(0644));
  152|       |    if (fd == -1)
  153|       |    {
  154|       |        return true;
  155|       |    }
  156|       |    *fp = ::fdopen(fd, mode.c_str());
  157|       |    if (*fp == nullptr)
  158|       |    {
  159|       |        ::close(fd);
  160|       |    }
  161|       |#    else
  162|      1|    *fp = ::fopen((filename.c_str()), mode.c_str());
  163|      1|#    endif
  164|      1|#endif
  165|       |
  166|      1|    return *fp == nullptr;
  167|      1|}

_ZN6spdlog7details8registry8instanceEv:
  286|  15.4M|{
  287|  15.4M|    static registry s_instance;
  288|  15.4M|    return s_instance;
  289|  15.4M|}
_ZN6spdlog7details8registryC2Ev:
   35|      1|{
   36|       |
   37|      1|#ifndef SPDLOG_DISABLE_DEFAULT_LOGGER
   38|       |    // create default logger (ansicolor_stdout_sink_mt or wincolor_stdout_sink_mt in windows).
   39|       |#    ifdef _WIN32
   40|       |    auto color_sink = std::make_shared<sinks::wincolor_stdout_sink_mt>();
   41|       |#    else
   42|      1|    auto color_sink = std::make_shared<sinks::ansicolor_stdout_sink_mt>();
   43|      1|#    endif
   44|       |
   45|      1|    const char *default_logger_name = "";
   46|      1|    default_logger_ = std::make_shared<spdlog::logger>(default_logger_name, std::move(color_sink));
   47|      1|    loggers_[default_logger_name] = default_logger_;
   48|       |
   49|      1|#endif // SPDLOG_DISABLE_DEFAULT_LOGGER
   50|      1|}
_ZN6spdlog7details8registryD2Ev:
   52|      1|SPDLOG_INLINE registry::~registry() = default;
_ZN6spdlog7details8registry18set_default_loggerENSt3__110shared_ptrINS_6loggerEEE:
  113|      1|{
  114|      1|    std::lock_guard<std::mutex> lock(logger_map_mutex_);
  115|       |    // remove previous default logger from the map
  116|      1|    if (default_logger_ != nullptr)
  ------------------
  |  Branch (116:9): [True: 1, False: 0]
  ------------------
  117|      1|    {
  118|      1|        loggers_.erase(default_logger_->name());
  119|      1|    }
  120|      1|    if (new_default_logger != nullptr)
  ------------------
  |  Branch (120:9): [True: 1, False: 0]
  ------------------
  121|      1|    {
  122|      1|        loggers_[new_default_logger->name()] = new_default_logger;
  123|      1|    }
  124|      1|    default_logger_ = std::move(new_default_logger);
  125|      1|}
_ZN6spdlog7details8registry16enable_backtraceEm:
  151|    512|{
  152|    512|    std::lock_guard<std::mutex> lock(logger_map_mutex_);
  153|    512|    backtrace_n_messages_ = n_messages;
  154|       |
  155|    512|    for (auto &l : loggers_)
  ------------------
  |  Branch (155:18): [True: 512, False: 512]
  ------------------
  156|    512|    {
  157|    512|        l.second->enable_backtrace(n_messages);
  158|    512|    }
  159|    512|}
_ZN6spdlog7details8registry15get_default_rawEv:
  106|  15.4M|{
  107|  15.4M|    return default_logger_.get();
  108|  15.4M|}
_ZN6spdlog7details8registry17initialize_loggerENSt3__110shared_ptrINS_6loggerEEE:
   61|      1|{
   62|      1|    std::lock_guard<std::mutex> lock(logger_map_mutex_);
   63|      1|    new_logger->set_formatter(formatter_->clone());
   64|       |
   65|      1|    if (err_handler_)
  ------------------
  |  Branch (65:9): [True: 0, False: 1]
  ------------------
   66|      0|    {
   67|      0|        new_logger->set_error_handler(err_handler_);
   68|      0|    }
   69|       |
   70|       |    // set new level according to previously configured level or default level
   71|      1|    auto it = log_levels_.find(new_logger->name());
   72|      1|    auto new_level = it != log_levels_.end() ? it->second : global_log_level_;
  ------------------
  |  Branch (72:22): [True: 0, False: 1]
  ------------------
   73|      1|    new_logger->set_level(new_level);
   74|       |
   75|      1|    new_logger->flush_on(flush_level_);
   76|       |
   77|      1|    if (backtrace_n_messages_ > 0)
  ------------------
  |  Branch (77:9): [True: 0, False: 1]
  ------------------
   78|      0|    {
   79|      0|        new_logger->enable_backtrace(backtrace_n_messages_);
   80|      0|    }
   81|       |
   82|      1|    if (automatic_registration_)
  ------------------
  |  Branch (82:9): [True: 1, False: 0]
  ------------------
   83|      1|    {
   84|      1|        register_logger_(std::move(new_logger));
   85|      1|    }
   86|      1|}
_ZN6spdlog7details8registry16register_logger_ENSt3__110shared_ptrINS_6loggerEEE:
  308|      1|{
  309|      1|    auto logger_name = new_logger->name();
  310|      1|    throw_if_exists_(logger_name);
  311|      1|    loggers_[logger_name] = std::move(new_logger);
  312|      1|}
_ZN6spdlog7details8registry16throw_if_exists_ERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  300|      1|{
  301|      1|    if (loggers_.find(logger_name) != loggers_.end())
  ------------------
  |  Branch (301:9): [True: 0, False: 1]
  ------------------
  302|      0|    {
  303|      0|        throw_spdlog_ex("logger with name '" + logger_name + "' already exists");
  304|      0|    }
  305|      1|}

_ZN6spdlog19synchronous_factory6createINS_5sinks15basic_file_sinkINSt3__15mutexEEEJRKNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERbRKNS_19file_event_handlersEEEENS4_10shared_ptrINS_6loggerEEESC_DpOT0_:
   17|      1|    {
   18|      1|        auto sink = std::make_shared<Sink>(std::forward<SinkArgs>(args)...);
   19|      1|        auto new_logger = std::make_shared<spdlog::logger>(std::move(logger_name), std::move(sink));
   20|      1|        details::registry::instance().initialize_logger(new_logger);
   21|      1|        return new_logger;
   22|      1|    }

_ZN3fmt2v96detail6bufferIcEC2EPcmm:
  874|  46.2M|      : ptr_(p), size_(sz), capacity_(cap) {}
_ZN3fmt2v96detail6bufferIcE3setEPcm:
  880|  61.6M|  FMT_CONSTEXPR void set(T* buf_data, size_t buf_capacity) noexcept {
  881|  61.6M|    ptr_ = buf_data;
  882|  61.6M|    capacity_ = buf_capacity;
  883|  61.6M|  }
_ZN3fmt2v96detail13ignore_unusedIJbEEEvDpRKT_:
  343|  39.3k|template <typename... T> FMT_CONSTEXPR void ignore_unused(const T&...) {}
_ZNK3fmt2v96detail6bufferIcE8capacityEv:
  905|  15.4M|  constexpr auto capacity() const noexcept -> size_t { return capacity_; }
_ZN3fmt2v96detail6bufferIcE4dataEv:
  908|   138M|  FMT_CONSTEXPR auto data() noexcept -> T* { return ptr_; }
_ZNK3fmt2v96detail6bufferIcE4sizeEv:
  902|  77.0M|  constexpr auto size() const noexcept -> size_t { return size_; }
_ZN3fmt2v96detail6bufferIcE5clearEv:
  914|  13.5k|  void clear() { size_ = 0; }
_ZN3fmt2v96detail6bufferIcE9push_backERKc:
  931|   169M|  FMT_CONSTEXPR20 void push_back(const T& value) {
  932|   169M|    try_reserve(size_ + 1);
  933|   169M|    ptr_[size_++] = value;
  934|   169M|  }
_ZN3fmt2v96detail6bufferIcE11try_reserveEm:
  927|   262M|  FMT_CONSTEXPR20 void try_reserve(size_t new_capacity) {
  928|   262M|    if (new_capacity > capacity_) grow(new_capacity);
  ------------------
  |  Branch (928:9): [True: 39.3k, False: 262M]
  ------------------
  929|   262M|  }
_ZN3fmt2v96detail11to_unsignedIlEENSt3__113make_unsignedIT_E4typeES5_:
  408|  92.5M|    typename std::make_unsigned<Int>::type {
  409|  92.5M|  FMT_ASSERT(std::is_unsigned<Int>::value || value >= 0, "negative value");
  ------------------
  |  |  370|   185M|      ((condition) /* void() fails with -Winvalid-constexpr on clang 4.0.1 */ \
  |  |  ------------------
  |  |  |  Branch (370:9): [Folded - Ignored]
  |  |  |  Branch (370:9): [True: 92.5M, False: 0]
  |  |  ------------------
  |  |  371|  92.5M|           ? (void)0                                                          \
  |  |  372|  92.5M|           : ::fmt::detail::assert_fail(__FILE__, __LINE__, (message)))
  ------------------
  410|  92.5M|  return static_cast<typename std::make_unsigned<Int>::type>(value);
  411|  92.5M|}
_ZN3fmt2v96detail6bufferIcE10try_resizeEm:
  918|  15.4M|  FMT_CONSTEXPR20 void try_resize(size_t count) {
  919|  15.4M|    try_reserve(count);
  920|  15.4M|    size_ = count <= capacity_ ? count : capacity_;
  ------------------
  |  Branch (920:13): [True: 15.4M, False: 0]
  ------------------
  921|  15.4M|  }
_ZNK3fmt2v917basic_string_viewIcE4dataEv:
  472|  61.6M|  constexpr auto data() const noexcept -> const Char* { return data_; }
_ZNK3fmt2v917basic_string_viewIcE5beginEv:
  477|  30.8M|  constexpr auto begin() const noexcept -> iterator { return data_; }
_ZNK3fmt2v917basic_string_viewIcE3endEv:
  478|  30.8M|  constexpr auto end() const noexcept -> iterator { return data_ + size_; }
_ZN3fmt2v917basic_string_viewIcEC2EPKcm:
  443|  61.6M|      : data_(s), size_(count) {}
_ZN3fmt2v917basic_string_viewIcEC2Ev:
  439|  30.8M|  constexpr basic_string_view() noexcept : data_(nullptr), size_(0) {}
_ZN3fmt2v96detail6bufferIcE5beginEv:
  895|  15.4M|  auto begin() noexcept -> T* { return ptr_; }
_ZN3fmt2v96detail6bufferIcE3endEv:
  896|  15.4M|  auto end() noexcept -> T* { return ptr_ + size_; }
_ZNK3fmt2v917basic_string_viewIcE4sizeEv:
  475|   169M|  constexpr auto size() const noexcept -> size_t { return size_; }
_ZN3fmt2v917basic_string_viewIcEC2EPKc:
  458|  1.04k|                  : std::char_traits<Char>::length(s)) {}
_ZNK3fmt2v96detail6bufferIcE4dataEv:
  911|  15.4M|  FMT_CONSTEXPR auto data() const noexcept -> const T* { return ptr_; }
_ZN3fmt2v917basic_string_viewIcEC2INSt3__111char_traitsIcEENS4_9allocatorIcEEEERKNS4_12basic_stringIcT_T0_EE:
  464|  46.2M|      : data_(s.data()), size_(s.size()) {}
_ZN3fmt2v96detail8copy_strIcccLi0EEEPT1_PT0_S6_S4_:
  849|  15.3M|FMT_CONSTEXPR auto copy_str(T* begin, T* end, U* out) -> U* {
  850|  15.3M|  if (is_constant_evaluated()) return copy_str<Char, T*, U*>(begin, end, out);
  ------------------
  |  Branch (850:7): [Folded - Ignored]
  ------------------
  851|  15.3M|  auto size = to_unsigned(end - begin);
  852|  15.3M|  memcpy(out, begin, size * sizeof(U));
  853|  15.3M|  return out + size;
  854|  15.3M|}

_ZN3fmt2v919basic_memory_bufferIcLm250ENSt3__19allocatorIcEEEC2ERKS4_:
  841|  46.2M|      : alloc_(alloc) {
  842|  46.2M|    this->set(store_, SIZE);
  843|  46.2M|    if (detail::is_constant_evaluated()) detail::fill_n(store_, SIZE, T());
  ------------------
  |  Branch (843:9): [Folded - Ignored]
  ------------------
  844|  46.2M|  }
_ZN3fmt2v919basic_memory_bufferIcLm250ENSt3__19allocatorIcEEE4growEm:
  912|  39.3k|    size_t size) {
  913|  39.3k|  detail::abort_fuzzing_if(size > 5000);
  914|  39.3k|  const size_t max_size = std::allocator_traits<Allocator>::max_size(alloc_);
  915|  39.3k|  size_t old_capacity = this->capacity();
  916|  39.3k|  size_t new_capacity = old_capacity + old_capacity / 2;
  917|  39.3k|  if (size > new_capacity)
  ------------------
  |  Branch (917:7): [True: 16.7k, False: 22.6k]
  ------------------
  918|  16.7k|    new_capacity = size;
  919|  22.6k|  else if (new_capacity > max_size)
  ------------------
  |  Branch (919:12): [True: 0, False: 22.6k]
  ------------------
  920|      0|    new_capacity = size > max_size ? size : max_size;
  ------------------
  |  Branch (920:20): [True: 0, False: 0]
  ------------------
  921|  39.3k|  T* old_data = this->data();
  922|  39.3k|  T* new_data =
  923|  39.3k|      std::allocator_traits<Allocator>::allocate(alloc_, new_capacity);
  924|       |  // The following code doesn't throw, so the raw pointer above doesn't leak.
  925|  39.3k|  std::uninitialized_copy(old_data, old_data + this->size(),
  926|  39.3k|                          detail::make_checked(new_data, new_capacity));
  927|  39.3k|  this->set(new_data, new_capacity);
  928|       |  // deallocate must not throw according to the standard, but even if it does,
  929|       |  // the buffer already uses the new storage and will deallocate it in
  930|       |  // destructor.
  931|  39.3k|  if (old_data != store_) alloc_.deallocate(old_data, old_capacity);
  ------------------
  |  Branch (931:7): [True: 9.32k, False: 30.0k]
  ------------------
  932|  39.3k|}
_ZN3fmt2v96detail16abort_fuzzing_ifEb:
  245|  39.3k|FMT_CONSTEXPR inline void abort_fuzzing_if(bool condition) {
  246|  39.3k|  ignore_unused(condition);
  247|       |#ifdef FMT_FUZZ
  248|       |  if (condition) throw std::runtime_error("fuzzing limit reached");
  249|       |#endif
  250|  39.3k|}
_ZN3fmt2v96detail12make_checkedIcEEPT_S4_m:
  497|  92.5M|template <typename T> constexpr auto make_checked(T* p, size_t) -> T* {
  498|  92.5M|  return p;
  499|  92.5M|}
_ZN3fmt2v919basic_memory_bufferIcLm250ENSt3__19allocatorIcEEED2Ev:
  845|  46.2M|  FMT_CONSTEXPR20 ~basic_memory_buffer() { deallocate(); }
_ZN3fmt2v919basic_memory_bufferIcLm250ENSt3__19allocatorIcEEE10deallocateEv:
  827|  61.6M|  FMT_CONSTEXPR20 void deallocate() {
  828|  61.6M|    T* data = this->data();
  829|  61.6M|    if (data != store_) alloc_.deallocate(data, this->capacity());
  ------------------
  |  Branch (829:9): [True: 30.0k, False: 61.6M]
  ------------------
  830|  61.6M|  }
_ZN3fmt2v910format_intC2Ei:
 3674|     35|  explicit format_int(int value) : str_(format_signed(value)) {}
_ZN3fmt2v910format_int13format_signedIiEEPcT_:
 3664|     35|  template <typename Int> auto format_signed(Int value) -> char* {
 3665|     35|    auto abs_value = static_cast<detail::uint32_or_64_or_128_t<Int>>(value);
 3666|     35|    bool negative = value < 0;
 3667|     35|    if (negative) abs_value = 0 - abs_value;
  ------------------
  |  Branch (3667:9): [True: 0, False: 35]
  ------------------
 3668|     35|    auto begin = format_unsigned(abs_value);
 3669|     35|    if (negative) *--begin = '-';
  ------------------
  |  Branch (3669:9): [True: 0, False: 35]
  ------------------
 3670|     35|    return begin;
 3671|     35|  }
_ZN3fmt2v910format_int15format_unsignedIjEEPcT_:
 3659|     35|  template <typename UInt> auto format_unsigned(UInt value) -> char* {
 3660|     35|    auto n = static_cast<detail::uint32_or_64_or_128_t<UInt>>(value);
 3661|     35|    return detail::format_decimal(buffer_, n, buffer_size - 1).begin;
 3662|     35|  }
_ZN3fmt2v96detail14format_decimalIcjEENS1_21format_decimal_resultIPT_EES5_T0_i:
 1215|     35|    -> format_decimal_result<Char*> {
 1216|     35|  FMT_ASSERT(size >= count_digits(value), "invalid digit count");
  ------------------
  |  |  370|     35|      ((condition) /* void() fails with -Winvalid-constexpr on clang 4.0.1 */ \
  |  |  ------------------
  |  |  |  Branch (370:8): [True: 35, False: 0]
  |  |  ------------------
  |  |  371|     35|           ? (void)0                                                          \
  |  |  372|     35|           : ::fmt::detail::assert_fail(__FILE__, __LINE__, (message)))
  ------------------
 1217|     35|  out += size;
 1218|     35|  Char* end = out;
 1219|     70|  while (value >= 100) {
  ------------------
  |  Branch (1219:10): [True: 35, False: 35]
  ------------------
 1220|       |    // Integer division is slow so do it for a group of two digits instead
 1221|       |    // of for every digit. The idea comes from the talk by Alexandrescu
 1222|       |    // "Three Optimization Tips for C++". See speed-test for a comparison.
 1223|     35|    out -= 2;
 1224|     35|    copy2(out, digits2(static_cast<size_t>(value % 100)));
 1225|     35|    value /= 100;
 1226|     35|  }
 1227|     35|  if (value < 10) {
  ------------------
  |  Branch (1227:7): [True: 0, False: 35]
  ------------------
 1228|      0|    *--out = static_cast<Char>('0' + value);
 1229|      0|    return {out, end};
 1230|      0|  }
 1231|     35|  out -= 2;
 1232|     35|  copy2(out, digits2(static_cast<size_t>(value)));
 1233|     35|  return {out, end};
 1234|     35|}
_ZN3fmt2v96detail12count_digitsEj:
 1145|     35|FMT_CONSTEXPR20 inline auto count_digits(uint32_t n) -> int {
 1146|     35|#ifdef FMT_BUILTIN_CLZ
 1147|     35|  if (!is_constant_evaluated()) {
  ------------------
  |  Branch (1147:7): [Folded - Ignored]
  ------------------
 1148|     35|    return do_count_digits(n);
 1149|     35|  }
 1150|      0|#endif
 1151|      0|  return count_digits_fallback(n);
 1152|     35|}
_ZN3fmt2v96detail15do_count_digitsEj:
 1122|     35|FMT_INLINE auto do_count_digits(uint32_t n) -> int {
 1123|       |// An optimization by Kendall Willets from https://bit.ly/3uOIQrB.
 1124|       |// This increments the upper 32 bits (log10(T) - 1) when >= T is added.
 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
 1126|     35|  static constexpr uint64_t table[] = {
 1127|     35|      FMT_INC(0),          FMT_INC(0),          FMT_INC(0),           // 8
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(0),          FMT_INC(0),          FMT_INC(0),           // 8
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(0),          FMT_INC(0),          FMT_INC(0),           // 8
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
 1128|     35|      FMT_INC(10),         FMT_INC(10),         FMT_INC(10),          // 64
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(10),         FMT_INC(10),         FMT_INC(10),          // 64
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(10),         FMT_INC(10),         FMT_INC(10),          // 64
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
 1129|     35|      FMT_INC(100),        FMT_INC(100),        FMT_INC(100),         // 512
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(100),        FMT_INC(100),        FMT_INC(100),         // 512
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(100),        FMT_INC(100),        FMT_INC(100),         // 512
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
 1130|     35|      FMT_INC(1000),       FMT_INC(1000),       FMT_INC(1000),        // 4096
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(1000),       FMT_INC(1000),       FMT_INC(1000),        // 4096
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(1000),       FMT_INC(1000),       FMT_INC(1000),        // 4096
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
 1131|     35|      FMT_INC(10000),      FMT_INC(10000),      FMT_INC(10000),       // 32k
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(10000),      FMT_INC(10000),      FMT_INC(10000),       // 32k
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(10000),      FMT_INC(10000),      FMT_INC(10000),       // 32k
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
 1132|     35|      FMT_INC(100000),     FMT_INC(100000),     FMT_INC(100000),      // 256k
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(100000),     FMT_INC(100000),     FMT_INC(100000),      // 256k
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(100000),     FMT_INC(100000),     FMT_INC(100000),      // 256k
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
 1133|     35|      FMT_INC(1000000),    FMT_INC(1000000),    FMT_INC(1000000),     // 2048k
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(1000000),    FMT_INC(1000000),    FMT_INC(1000000),     // 2048k
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(1000000),    FMT_INC(1000000),    FMT_INC(1000000),     // 2048k
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
 1134|     35|      FMT_INC(10000000),   FMT_INC(10000000),   FMT_INC(10000000),    // 16M
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(10000000),   FMT_INC(10000000),   FMT_INC(10000000),    // 16M
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(10000000),   FMT_INC(10000000),   FMT_INC(10000000),    // 16M
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
 1135|     35|      FMT_INC(100000000),  FMT_INC(100000000),  FMT_INC(100000000),   // 128M
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(100000000),  FMT_INC(100000000),  FMT_INC(100000000),   // 128M
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(100000000),  FMT_INC(100000000),  FMT_INC(100000000),   // 128M
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
 1136|     35|      FMT_INC(1000000000), FMT_INC(1000000000), FMT_INC(1000000000),  // 1024M
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(1000000000), FMT_INC(1000000000), FMT_INC(1000000000),  // 1024M
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(1000000000), FMT_INC(1000000000), FMT_INC(1000000000),  // 1024M
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
 1137|       |      FMT_INC(1000000000), FMT_INC(1000000000)                        // 4B
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
                    FMT_INC(1000000000), FMT_INC(1000000000)                        // 4B
  ------------------
  |  | 1125|     35|#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
  ------------------
 1138|     35|  };
 1139|     35|  auto inc = table[FMT_BUILTIN_CLZ(n | 1) ^ 31];
  ------------------
  |  |  144|     35|#    define FMT_BUILTIN_CLZ(n) __builtin_clz(n)
  ------------------
 1140|     35|  return static_cast<int>((n + inc) >> 32);
 1141|     35|}
_ZN3fmt2v96detail5copy2IcEEvPT_PKc:
 1196|     70|FMT_CONSTEXPR20 FMT_INLINE void copy2(Char* dst, const char* src) {
 1197|     70|  if (!is_constant_evaluated() && sizeof(Char) == sizeof(char)) {
  ------------------
  |  Branch (1197:7): [Folded - Ignored]
  |  Branch (1197:35): [Folded - Ignored]
  ------------------
 1198|     70|    memcpy(dst, src, 2);
 1199|     70|    return;
 1200|     70|  }
 1201|      0|  *dst++ = static_cast<Char>(*src++);
 1202|      0|  *dst = static_cast<Char>(*src);
 1203|      0|}
_ZN3fmt2v96detail7digits2Em:
 1033|     70|constexpr const char* digits2(size_t value) {
 1034|       |  // GCC generates slightly better code when value is pointer-size.
 1035|     70|  return &"0001020304050607080910111213141516171819"
 1036|     70|         "2021222324252627282930313233343536373839"
 1037|     70|         "4041424344454647484950515253545556575859"
 1038|     70|         "6061626364656667686970717273747576777879"
 1039|     70|         "8081828384858687888990919293949596979899"[value * 2];
 1040|     70|}
_ZNK3fmt2v910format_int4dataEv:
 3691|     70|  auto data() const -> const char* { return str_; }
_ZNK3fmt2v910format_int4sizeEv:
 3683|     35|  auto size() const -> size_t {
 3684|     35|    return detail::to_unsigned(buffer_ - str_ + buffer_size - 1);
 3685|     35|  }
_ZN3fmt2v919basic_memory_bufferIcLm250ENSt3__19allocatorIcEEE6resizeEm:
  897|  15.4M|  FMT_CONSTEXPR20 void resize(size_t count) { this->try_resize(count); }
_ZN3fmt2v96detail6bufferIcE6appendIcEEvPKT_S7_:
  772|   107M|void buffer<T>::append(const U* begin, const U* end) {
  773|   185M|  while (begin != end) {
  ------------------
  |  Branch (773:10): [True: 77.1M, False: 107M]
  ------------------
  774|  77.1M|    auto count = to_unsigned(end - begin);
  775|  77.1M|    try_reserve(size_ + count);
  776|  77.1M|    auto free_cap = capacity_ - size_;
  777|  77.1M|    if (free_cap < count) count = free_cap;
  ------------------
  |  Branch (777:9): [True: 0, False: 77.1M]
  ------------------
  778|  77.1M|    std::uninitialized_copy_n(begin, count, make_checked(ptr_ + size_, count));
  779|  77.1M|    size_ += count;
  780|  77.1M|    begin += count;
  781|  77.1M|  }
  782|   107M|}
_ZN3fmt2v919basic_memory_bufferIcLm250ENSt3__19allocatorIcEEEaSEOS5_:
  883|  15.4M|  auto operator=(basic_memory_buffer&& other) noexcept -> basic_memory_buffer& {
  884|  15.4M|    FMT_ASSERT(this != &other, "");
  ------------------
  |  |  370|  15.4M|      ((condition) /* void() fails with -Winvalid-constexpr on clang 4.0.1 */ \
  |  |  ------------------
  |  |  |  Branch (370:8): [True: 15.4M, False: 0]
  |  |  ------------------
  |  |  371|  15.4M|           ? (void)0                                                          \
  |  |  372|  15.4M|           : ::fmt::detail::assert_fail(__FILE__, __LINE__, (message)))
  ------------------
  885|  15.4M|    deallocate();
  886|  15.4M|    move(other);
  887|  15.4M|    return *this;
  888|  15.4M|  }
_ZN3fmt2v919basic_memory_bufferIcLm250ENSt3__19allocatorIcEEE4moveERS5_:
  849|  15.4M|  FMT_CONSTEXPR20 void move(basic_memory_buffer& other) {
  850|  15.4M|    alloc_ = std::move(other.alloc_);
  851|  15.4M|    T* data = other.data();
  852|  15.4M|    size_t size = other.size(), capacity = other.capacity();
  853|  15.4M|    if (data == other.store_) {
  ------------------
  |  Branch (853:9): [True: 15.3M, False: 13.5k]
  ------------------
  854|  15.3M|      this->set(store_, capacity);
  855|  15.3M|      detail::copy_str<T>(other.store_, other.store_ + size,
  856|  15.3M|                          detail::make_checked(store_, capacity));
  857|  15.3M|    } else {
  858|  13.5k|      this->set(data, capacity);
  859|       |      // Set pointer to the inline array so that delete is not called
  860|       |      // when deallocating.
  861|  13.5k|      other.set(other.store_, 0);
  862|  13.5k|      other.clear();
  863|  13.5k|    }
  864|  15.4M|    this->resize(size);
  865|  15.4M|  }

_ZN6spdlog9formatterD2Ev:
   14|      4|    virtual ~formatter() = default;

_ZNK6spdlog6logger4nameEv:
   78|  1.02k|{
   79|  1.02k|    return name_;
   80|  1.02k|}
_ZN6spdlog6logger16enable_backtraceEm:
  109|    512|{
  110|    512|    tracer_.enable(n_messages);
  111|    512|}
_ZN6spdlog6logger14dump_backtraceEv:
  120|    512|{
  121|    512|    dump_backtrace_();
  122|    512|}
_ZN6spdlog6logger15dump_backtrace_Ev:
  211|    512|{
  212|    512|    using details::log_msg;
  213|    512|    if (tracer_.enabled() && !tracer_.empty())
  ------------------
  |  Branch (213:9): [True: 512, False: 0]
  |  Branch (213:30): [True: 511, False: 1]
  ------------------
  214|    511|    {
  215|    511|        sink_it_(log_msg{name(), level::info, "****************** Backtrace Start ******************"});
  216|    511|        tracer_.foreach_pop([this](const log_msg &msg) { this->sink_it_(msg); });
  217|    511|        sink_it_(log_msg{name(), level::info, "****************** Backtrace End ********************"});
  218|    511|    }
  219|    512|}
_ZZN6spdlog6logger15dump_backtrace_EvENKUlRKNS_7details7log_msgEE_clES4_:
  216|  15.4M|        tracer_.foreach_pop([this](const log_msg &msg) { this->sink_it_(msg); });
_ZN6spdlog6logger8sink_it_ERKNS_7details7log_msgE:
  179|  15.4M|{
  180|  15.4M|    for (auto &sink : sinks_)
  ------------------
  |  Branch (180:21): [True: 15.4M, False: 15.4M]
  ------------------
  181|  15.4M|    {
  182|  15.4M|        if (sink->should_log(msg.level))
  ------------------
  |  Branch (182:13): [True: 15.4M, False: 0]
  ------------------
  183|  15.4M|        {
  184|  15.4M|            SPDLOG_TRY
  ------------------
  |  |  107|  15.4M|#    define SPDLOG_TRY try
  ------------------
  185|  15.4M|            {
  186|  15.4M|                sink->log(msg);
  187|  15.4M|            }
  188|  15.4M|            SPDLOG_LOGGER_CATCH(msg.source)
  ------------------
  |  |   32|  15.4M|        catch (const std::exception &ex)                                                                                                   \
  |  |   33|  15.4M|        {                                                                                                                                  \
  |  |   34|      0|            if (location.filename)                                                                                                         \
  |  |  ------------------
  |  |  |  Branch (34:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   35|      0|            {                                                                                                                              \
  |  |   36|      0|                err_handler_(fmt_lib::format(SPDLOG_FMT_STRING("{} [{}({})]"), ex.what(), location.filename, location.line));              \
  |  |  ------------------
  |  |  |  |   54|      0|#    define SPDLOG_FMT_STRING(format_string) FMT_STRING(format_string)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1772|      0|#define FMT_STRING(s) FMT_STRING_IMPL(s, fmt::detail::compile_string, )
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 1749|      0|  [] {                                                                        \
  |  |  |  |  |  |  |  | 1750|      0|    /* Use the hidden visibility as a workaround for a GCC bug (#1973). */    \
  |  |  |  |  |  |  |  | 1751|      0|    /* Use a macro-like name to avoid shadowing warnings. */                  \
  |  |  |  |  |  |  |  | 1752|      0|    struct FMT_GCC_VISIBILITY_HIDDEN FMT_COMPILE_STRING : base {              \
  |  |  |  |  |  |  |  | 1753|      0|      using char_type FMT_MAYBE_UNUSED = fmt::remove_cvref_t<decltype(s[0])>; \
  |  |  |  |  |  |  |  | 1754|      0|      FMT_MAYBE_UNUSED FMT_CONSTEXPR explicit                                 \
  |  |  |  |  |  |  |  | 1755|      0|      operator fmt::basic_string_view<char_type>() const {                    \
  |  |  |  |  |  |  |  | 1756|      0|        return fmt::detail_exported::compile_string_to_view<char_type>(s);    \
  |  |  |  |  |  |  |  | 1757|      0|      }                                                                       \
  |  |  |  |  |  |  |  | 1758|      0|    };                                                                        \
  |  |  |  |  |  |  |  | 1759|      0|    return FMT_COMPILE_STRING();                                              \
  |  |  |  |  |  |  |  | 1760|      0|  }()
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   37|      0|            }                                                                                                                              \
  |  |   38|      0|            else                                                                                                                           \
  |  |   39|      0|            {                                                                                                                              \
  |  |   40|      0|                err_handler_(ex.what());                                                                                                   \
  |  |   41|      0|            }                                                                                                                              \
  |  |   42|      0|        }                                                                                                                                  \
  |  |   43|  15.4M|        catch (...)                                                                                                                        \
  |  |   44|  15.4M|        {                                                                                                                                  \
  |  |   45|      0|            err_handler_("Rethrowing unknown exception in logger");                                                                        \
  |  |   46|      0|            throw;                                                                                                                         \
  |  |   47|      0|        }
  ------------------
  189|  15.4M|        }
  190|  15.4M|    }
  191|       |
  192|  15.4M|    if (should_flush_(msg))
  ------------------
  |  Branch (192:9): [True: 0, False: 15.4M]
  ------------------
  193|      0|    {
  194|      0|        flush_();
  195|      0|    }
  196|  15.4M|}
_ZN6spdlog6logger13should_flush_ERKNS_7details7log_msgE:
  222|  15.4M|{
  223|  15.4M|    auto flush_level = flush_level_.load(std::memory_order_relaxed);
  224|  15.4M|    return (msg.level >= flush_level) && (msg.level != level::off);
  ------------------
  |  Branch (224:12): [True: 0, False: 15.4M]
  |  Branch (224:42): [True: 0, False: 0]
  ------------------
  225|  15.4M|}
_ZN6spdlog6logger13set_formatterENSt3__110unique_ptrINS_9formatterENS1_14default_deleteIS3_EEEE:
   85|      1|{
   86|      1|    for (auto it = sinks_.begin(); it != sinks_.end(); ++it)
  ------------------
  |  Branch (86:36): [True: 1, False: 0]
  ------------------
   87|      1|    {
   88|      1|        if (std::next(it) == sinks_.end())
  ------------------
  |  Branch (88:13): [True: 1, False: 0]
  ------------------
   89|      1|        {
   90|       |            // last element - we can be move it.
   91|      1|            (*it)->set_formatter(std::move(f));
   92|      1|            break; // to prevent clang-tidy warning
   93|      1|        }
   94|      0|        else
   95|      0|        {
   96|      0|            (*it)->set_formatter(f->clone());
   97|      0|        }
   98|      1|    }
   99|      1|}
_ZN6spdlog6logger9set_levelENS_5level10level_enumE:
   68|      1|{
   69|      1|    level_.store(log_level);
   70|      1|}
_ZN6spdlog6logger8flush_onENS_5level10level_enumE:
  131|      1|{
  132|      1|    flush_level_.store(log_level);
  133|      1|}
_ZN6spdlog6logger7log_it_ERKNS_7details7log_msgEbb:
  167|  15.4M|{
  168|  15.4M|    if (log_enabled)
  ------------------
  |  Branch (168:9): [True: 0, False: 15.4M]
  ------------------
  169|      0|    {
  170|      0|        sink_it_(log_msg);
  171|      0|    }
  172|  15.4M|    if (traceback_enabled)
  ------------------
  |  Branch (172:9): [True: 15.4M, False: 0]
  ------------------
  173|  15.4M|    {
  174|  15.4M|        tracer_.push_back(log_msg);
  175|  15.4M|    }
  176|  15.4M|}

_ZN6spdlog6loggerC2ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_10shared_ptrINS_5sinks4sinkEEE:
   73|      2|    {}
_ZN6spdlog6loggerC2ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEESt16initializer_listINS1_10shared_ptrINS_5sinks4sinkEEEE:
   78|      2|    {}
_ZN6spdlog6loggerC2IPKNSt3__110shared_ptrINS_5sinks4sinkEEEEENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEET_SF_:
   68|      2|    {}
_ZN6spdlog6loggerD2Ev:
   80|      2|    virtual ~logger() = default;
_ZN6spdlog6logger5debugINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEvRKT_:
  272|  15.4M|    {
  273|  15.4M|        log(level::debug, msg);
  274|  15.4M|    }
_ZN6spdlog6logger3logINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEvNS_5level10level_enumERKT_:
  101|  15.4M|    {
  102|  15.4M|        log(source_loc{}, lvl, msg);
  103|  15.4M|    }
_ZN6spdlog6logger3logENS_10source_locENS_5level10level_enumEN3fmt2v917basic_string_viewIcEE:
  126|  15.4M|    {
  127|  15.4M|        bool log_enabled = should_log(lvl);
  128|  15.4M|        bool traceback_enabled = tracer_.enabled();
  129|  15.4M|        if (!log_enabled && !traceback_enabled)
  ------------------
  |  Branch (129:13): [True: 15.4M, False: 0]
  |  Branch (129:29): [True: 0, False: 15.4M]
  ------------------
  130|      0|        {
  131|      0|            return;
  132|      0|        }
  133|       |
  134|  15.4M|        details::log_msg log_msg(loc, name_, lvl, msg);
  135|  15.4M|        log_it_(log_msg, log_enabled, traceback_enabled);
  136|  15.4M|    }
_ZNK6spdlog6logger10should_logENS_5level10level_enumE:
  302|  15.4M|    {
  303|  15.4M|        return msg_level >= level_.load(std::memory_order_relaxed);
  304|  15.4M|    }

_ZNK6spdlog17pattern_formatter5cloneEv:
 1048|      1|{
 1049|      1|    custom_flags cloned_custom_formatters;
 1050|      1|    for (auto &it : custom_handlers_)
  ------------------
  |  Branch (1050:19): [True: 0, False: 1]
  ------------------
 1051|      0|    {
 1052|      0|        cloned_custom_formatters[it.first] = it.second->clone();
 1053|      0|    }
 1054|      1|    auto cloned = details::make_unique<pattern_formatter>(pattern_, pattern_time_type_, eol_, std::move(cloned_custom_formatters));
 1055|      1|    cloned->need_localtime(need_localtime_);
 1056|      1|#if defined(__GNUC__) && __GNUC__ < 5
 1057|      1|    return std::move(cloned);
 1058|       |#else
 1059|       |    return cloned;
 1060|       |#endif
 1061|      1|}
_ZN6spdlog17pattern_formatter14need_localtimeEb:
 1091|      1|{
 1092|      1|    need_localtime_ = need;
 1093|      1|}
_ZN6spdlog17pattern_formatterC2ENS_17pattern_time_typeENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
 1042|      3|{
 1043|      3|    std::memset(&cached_tm_, 0, sizeof(cached_tm_));
 1044|      3|    formatters_.push_back(details::make_unique<details::full_formatter>(details::padding_info{}));
 1045|      3|}
_ZN6spdlog7details14full_formatterC2ENS0_12padding_infoE:
  939|      4|    {}
_ZN6spdlog7details14full_formatter6formatERKNS0_7log_msgERK2tmRN3fmt2v919basic_memory_bufferIcLm250ENSt3__19allocatorIcEEEE:
  942|  15.4M|    {
  943|  15.4M|        using std::chrono::duration_cast;
  944|  15.4M|        using std::chrono::milliseconds;
  945|  15.4M|        using std::chrono::seconds;
  946|       |
  947|       |        // cache the date/time part for the next second.
  948|  15.4M|        auto duration = msg.time.time_since_epoch();
  949|  15.4M|        auto secs = duration_cast<seconds>(duration);
  950|       |
  951|  15.4M|        if (cache_timestamp_ != secs || cached_datetime_.size() == 0)
  ------------------
  |  Branch (951:13): [True: 35, False: 15.4M]
  |  Branch (951:41): [True: 0, False: 15.4M]
  ------------------
  952|     35|        {
  953|     35|            cached_datetime_.clear();
  954|     35|            cached_datetime_.push_back('[');
  955|     35|            fmt_helper::append_int(tm_time.tm_year + 1900, cached_datetime_);
  956|     35|            cached_datetime_.push_back('-');
  957|       |
  958|     35|            fmt_helper::pad2(tm_time.tm_mon + 1, cached_datetime_);
  959|     35|            cached_datetime_.push_back('-');
  960|       |
  961|     35|            fmt_helper::pad2(tm_time.tm_mday, cached_datetime_);
  962|     35|            cached_datetime_.push_back(' ');
  963|       |
  964|     35|            fmt_helper::pad2(tm_time.tm_hour, cached_datetime_);
  965|     35|            cached_datetime_.push_back(':');
  966|       |
  967|     35|            fmt_helper::pad2(tm_time.tm_min, cached_datetime_);
  968|     35|            cached_datetime_.push_back(':');
  969|       |
  970|     35|            fmt_helper::pad2(tm_time.tm_sec, cached_datetime_);
  971|     35|            cached_datetime_.push_back('.');
  972|       |
  973|     35|            cache_timestamp_ = secs;
  974|     35|        }
  975|  15.4M|        dest.append(cached_datetime_.begin(), cached_datetime_.end());
  976|       |
  977|  15.4M|        auto millis = fmt_helper::time_fraction<milliseconds>(msg.time);
  978|  15.4M|        fmt_helper::pad3(static_cast<uint32_t>(millis.count()), dest);
  979|  15.4M|        dest.push_back(']');
  980|  15.4M|        dest.push_back(' ');
  981|       |
  982|       |        // append logger name if exists
  983|  15.4M|        if (msg.logger_name.size() > 0)
  ------------------
  |  Branch (983:13): [True: 15.4M, False: 0]
  ------------------
  984|  15.4M|        {
  985|  15.4M|            dest.push_back('[');
  986|  15.4M|            fmt_helper::append_string_view(msg.logger_name, dest);
  987|  15.4M|            dest.push_back(']');
  988|  15.4M|            dest.push_back(' ');
  989|  15.4M|        }
  990|       |
  991|  15.4M|        dest.push_back('[');
  992|       |        // wrap the level name with color
  993|  15.4M|        msg.color_range_start = dest.size();
  994|       |        // fmt_helper::append_string_view(level::to_c_str(msg.level), dest);
  995|  15.4M|        fmt_helper::append_string_view(level::to_string_view(msg.level), dest);
  996|  15.4M|        msg.color_range_end = dest.size();
  997|  15.4M|        dest.push_back(']');
  998|  15.4M|        dest.push_back(' ');
  999|       |
 1000|       |        // add source location if present
 1001|  15.4M|        if (!msg.source.empty())
  ------------------
  |  Branch (1001:13): [True: 0, False: 15.4M]
  ------------------
 1002|      0|        {
 1003|      0|            dest.push_back('[');
 1004|      0|            const char *filename = details::short_filename_formatter<details::null_scoped_padder>::basename(msg.source.filename);
 1005|      0|            fmt_helper::append_string_view(filename, dest);
 1006|      0|            dest.push_back(':');
 1007|      0|            fmt_helper::append_int(msg.source.line, dest);
 1008|      0|            dest.push_back(']');
 1009|      0|            dest.push_back(' ');
 1010|      0|        }
 1011|       |        // fmt_helper::append_string_view(msg.msg(), dest);
 1012|  15.4M|        fmt_helper::append_string_view(msg.payload, dest);
 1013|  15.4M|    }
_ZN6spdlog17pattern_formatterC2ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_17pattern_time_typeES7_NS1_13unordered_mapIcNS1_10unique_ptrINS_21custom_flag_formatterENS1_14default_deleteISB_EEEENS1_4hashIcEENS1_8equal_toIcEENS5_INS1_4pairIKcSE_EEEEEE:
 1030|      1|{
 1031|      1|    std::memset(&cached_tm_, 0, sizeof(cached_tm_));
 1032|      1|    compile_pattern_(pattern_);
 1033|      1|}
_ZN6spdlog17pattern_formatter16compile_pattern_ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 1391|      1|{
 1392|      1|    auto end = pattern.end();
 1393|      1|    std::unique_ptr<details::aggregate_formatter> user_chars;
 1394|      1|    formatters_.clear();
 1395|      2|    for (auto it = pattern.begin(); it != end; ++it)
  ------------------
  |  Branch (1395:37): [True: 1, False: 1]
  ------------------
 1396|      1|    {
 1397|      1|        if (*it == '%')
  ------------------
  |  Branch (1397:13): [True: 1, False: 0]
  ------------------
 1398|      1|        {
 1399|      1|            if (user_chars) // append user chars found so far
  ------------------
  |  Branch (1399:17): [True: 0, False: 1]
  ------------------
 1400|      0|            {
 1401|      0|                formatters_.push_back(std::move(user_chars));
 1402|      0|            }
 1403|       |
 1404|      1|            auto padding = handle_padspec_(++it, end);
 1405|       |
 1406|      1|            if (it != end)
  ------------------
  |  Branch (1406:17): [True: 1, False: 0]
  ------------------
 1407|      1|            {
 1408|      1|                if (padding.enabled())
  ------------------
  |  Branch (1408:21): [True: 0, False: 1]
  ------------------
 1409|      0|                {
 1410|      0|                    handle_flag_<details::scoped_padder>(*it, padding);
 1411|      0|                }
 1412|      1|                else
 1413|      1|                {
 1414|      1|                    handle_flag_<details::null_scoped_padder>(*it, padding);
 1415|      1|                }
 1416|      1|            }
 1417|      0|            else
 1418|      0|            {
 1419|      0|                break;
 1420|      0|            }
 1421|      1|        }
 1422|      0|        else // chars not following the % sign should be displayed as is
 1423|      0|        {
 1424|      0|            if (!user_chars)
  ------------------
  |  Branch (1424:17): [True: 0, False: 0]
  ------------------
 1425|      0|            {
 1426|      0|                user_chars = details::make_unique<details::aggregate_formatter>();
 1427|      0|            }
 1428|      0|            user_chars->add_ch(*it);
 1429|      0|        }
 1430|      1|    }
 1431|      1|    if (user_chars) // append raw chars found so far
  ------------------
  |  Branch (1431:9): [True: 0, False: 1]
  ------------------
 1432|      0|    {
 1433|      0|        formatters_.push_back(std::move(user_chars));
 1434|      0|    }
 1435|      1|}
_ZN6spdlog17pattern_formatter15handle_padspec_ERNSt3__111__wrap_iterIPKcEES5_:
 1339|      1|{
 1340|      1|    using details::padding_info;
 1341|      1|    using details::scoped_padder;
 1342|      1|    const size_t max_width = 64;
 1343|      1|    if (it == end)
  ------------------
  |  Branch (1343:9): [True: 0, False: 1]
  ------------------
 1344|      0|    {
 1345|      0|        return padding_info{};
 1346|      0|    }
 1347|       |
 1348|      1|    padding_info::pad_side side;
 1349|      1|    switch (*it)
 1350|      1|    {
 1351|      0|    case '-':
  ------------------
  |  Branch (1351:5): [True: 0, False: 1]
  ------------------
 1352|      0|        side = padding_info::pad_side::right;
 1353|      0|        ++it;
 1354|      0|        break;
 1355|      0|    case '=':
  ------------------
  |  Branch (1355:5): [True: 0, False: 1]
  ------------------
 1356|      0|        side = padding_info::pad_side::center;
 1357|      0|        ++it;
 1358|      0|        break;
 1359|      1|    default:
  ------------------
  |  Branch (1359:5): [True: 1, False: 0]
  ------------------
 1360|      1|        side = details::padding_info::pad_side::left;
 1361|      1|        break;
 1362|      1|    }
 1363|       |
 1364|      1|    if (it == end || !std::isdigit(static_cast<unsigned char>(*it)))
  ------------------
  |  Branch (1364:9): [True: 0, False: 1]
  |  Branch (1364:22): [True: 1, False: 0]
  ------------------
 1365|      1|    {
 1366|      1|        return padding_info{}; // no padding if no digit found here
 1367|      1|    }
 1368|       |
 1369|      0|    auto width = static_cast<size_t>(*it) - '0';
 1370|      0|    for (++it; it != end && std::isdigit(static_cast<unsigned char>(*it)); ++it)
  ------------------
  |  Branch (1370:16): [True: 0, False: 0]
  |  Branch (1370:29): [True: 0, False: 0]
  ------------------
 1371|      0|    {
 1372|      0|        auto digit = static_cast<size_t>(*it) - '0';
 1373|      0|        width = width * 10 + digit;
 1374|      0|    }
 1375|       |
 1376|       |    // search for the optional truncate marker '!'
 1377|      0|    bool truncate;
 1378|      0|    if (it != end && *it == '!')
  ------------------
  |  Branch (1378:9): [True: 0, False: 0]
  |  Branch (1378:22): [True: 0, False: 0]
  ------------------
 1379|      0|    {
 1380|      0|        truncate = true;
 1381|      0|        ++it;
 1382|      0|    }
 1383|      0|    else
 1384|      0|    {
 1385|      0|        truncate = false;
 1386|      0|    }
 1387|      0|    return details::padding_info{std::min<size_t>(width, max_width), side, truncate};
 1388|      1|}
_ZN6spdlog17pattern_formatter12handle_flag_INS_7details18null_scoped_padderEEEvcNS2_12padding_infoE:
 1106|      1|{
 1107|       |    // process custom flags
 1108|      1|    auto it = custom_handlers_.find(flag);
 1109|      1|    if (it != custom_handlers_.end())
  ------------------
  |  Branch (1109:9): [True: 0, False: 1]
  ------------------
 1110|      0|    {
 1111|      0|        auto custom_handler = it->second->clone();
 1112|      0|        custom_handler->set_padding_info(padding);
 1113|      0|        formatters_.push_back(std::move(custom_handler));
 1114|      0|        return;
 1115|      0|    }
 1116|       |
 1117|       |    // process built-in flags
 1118|      1|    switch (flag)
 1119|      1|    {
 1120|      1|    case ('+'): // default formatter
  ------------------
  |  Branch (1120:5): [True: 1, False: 0]
  ------------------
 1121|      1|        formatters_.push_back(details::make_unique<details::full_formatter>(padding));
 1122|      1|        need_localtime_ = true;
 1123|      1|        break;
 1124|       |
 1125|      0|    case 'n': // logger name
  ------------------
  |  Branch (1125:5): [True: 0, False: 1]
  ------------------
 1126|      0|        formatters_.push_back(details::make_unique<details::name_formatter<Padder>>(padding));
 1127|      0|        break;
 1128|       |
 1129|      0|    case 'l': // level
  ------------------
  |  Branch (1129:5): [True: 0, False: 1]
  ------------------
 1130|      0|        formatters_.push_back(details::make_unique<details::level_formatter<Padder>>(padding));
 1131|      0|        break;
 1132|       |
 1133|      0|    case 'L': // short level
  ------------------
  |  Branch (1133:5): [True: 0, False: 1]
  ------------------
 1134|      0|        formatters_.push_back(details::make_unique<details::short_level_formatter<Padder>>(padding));
 1135|      0|        break;
 1136|       |
 1137|      0|    case ('t'): // thread id
  ------------------
  |  Branch (1137:5): [True: 0, False: 1]
  ------------------
 1138|      0|        formatters_.push_back(details::make_unique<details::t_formatter<Padder>>(padding));
 1139|      0|        break;
 1140|       |
 1141|      0|    case ('v'): // the message text
  ------------------
  |  Branch (1141:5): [True: 0, False: 1]
  ------------------
 1142|      0|        formatters_.push_back(details::make_unique<details::v_formatter<Padder>>(padding));
 1143|      0|        break;
 1144|       |
 1145|      0|    case ('a'): // weekday
  ------------------
  |  Branch (1145:5): [True: 0, False: 1]
  ------------------
 1146|      0|        formatters_.push_back(details::make_unique<details::a_formatter<Padder>>(padding));
 1147|      0|        need_localtime_ = true;
 1148|      0|        break;
 1149|       |
 1150|      0|    case ('A'): // short weekday
  ------------------
  |  Branch (1150:5): [True: 0, False: 1]
  ------------------
 1151|      0|        formatters_.push_back(details::make_unique<details::A_formatter<Padder>>(padding));
 1152|      0|        need_localtime_ = true;
 1153|      0|        break;
 1154|       |
 1155|      0|    case ('b'):
  ------------------
  |  Branch (1155:5): [True: 0, False: 1]
  ------------------
 1156|      0|    case ('h'): // month
  ------------------
  |  Branch (1156:5): [True: 0, False: 1]
  ------------------
 1157|      0|        formatters_.push_back(details::make_unique<details::b_formatter<Padder>>(padding));
 1158|      0|        need_localtime_ = true;
 1159|      0|        break;
 1160|       |
 1161|      0|    case ('B'): // short month
  ------------------
  |  Branch (1161:5): [True: 0, False: 1]
  ------------------
 1162|      0|        formatters_.push_back(details::make_unique<details::B_formatter<Padder>>(padding));
 1163|      0|        need_localtime_ = true;
 1164|      0|        break;
 1165|       |
 1166|      0|    case ('c'): // datetime
  ------------------
  |  Branch (1166:5): [True: 0, False: 1]
  ------------------
 1167|      0|        formatters_.push_back(details::make_unique<details::c_formatter<Padder>>(padding));
 1168|      0|        need_localtime_ = true;
 1169|      0|        break;
 1170|       |
 1171|      0|    case ('C'): // year 2 digits
  ------------------
  |  Branch (1171:5): [True: 0, False: 1]
  ------------------
 1172|      0|        formatters_.push_back(details::make_unique<details::C_formatter<Padder>>(padding));
 1173|      0|        need_localtime_ = true;
 1174|      0|        break;
 1175|       |
 1176|      0|    case ('Y'): // year 4 digits
  ------------------
  |  Branch (1176:5): [True: 0, False: 1]
  ------------------
 1177|      0|        formatters_.push_back(details::make_unique<details::Y_formatter<Padder>>(padding));
 1178|      0|        need_localtime_ = true;
 1179|      0|        break;
 1180|       |
 1181|      0|    case ('D'):
  ------------------
  |  Branch (1181:5): [True: 0, False: 1]
  ------------------
 1182|      0|    case ('x'): // datetime MM/DD/YY
  ------------------
  |  Branch (1182:5): [True: 0, False: 1]
  ------------------
 1183|      0|        formatters_.push_back(details::make_unique<details::D_formatter<Padder>>(padding));
 1184|      0|        need_localtime_ = true;
 1185|      0|        break;
 1186|       |
 1187|      0|    case ('m'): // month 1-12
  ------------------
  |  Branch (1187:5): [True: 0, False: 1]
  ------------------
 1188|      0|        formatters_.push_back(details::make_unique<details::m_formatter<Padder>>(padding));
 1189|      0|        need_localtime_ = true;
 1190|      0|        break;
 1191|       |
 1192|      0|    case ('d'): // day of month 1-31
  ------------------
  |  Branch (1192:5): [True: 0, False: 1]
  ------------------
 1193|      0|        formatters_.push_back(details::make_unique<details::d_formatter<Padder>>(padding));
 1194|      0|        need_localtime_ = true;
 1195|      0|        break;
 1196|       |
 1197|      0|    case ('H'): // hours 24
  ------------------
  |  Branch (1197:5): [True: 0, False: 1]
  ------------------
 1198|      0|        formatters_.push_back(details::make_unique<details::H_formatter<Padder>>(padding));
 1199|      0|        need_localtime_ = true;
 1200|      0|        break;
 1201|       |
 1202|      0|    case ('I'): // hours 12
  ------------------
  |  Branch (1202:5): [True: 0, False: 1]
  ------------------
 1203|      0|        formatters_.push_back(details::make_unique<details::I_formatter<Padder>>(padding));
 1204|      0|        need_localtime_ = true;
 1205|      0|        break;
 1206|       |
 1207|      0|    case ('M'): // minutes
  ------------------
  |  Branch (1207:5): [True: 0, False: 1]
  ------------------
 1208|      0|        formatters_.push_back(details::make_unique<details::M_formatter<Padder>>(padding));
 1209|      0|        need_localtime_ = true;
 1210|      0|        break;
 1211|       |
 1212|      0|    case ('S'): // seconds
  ------------------
  |  Branch (1212:5): [True: 0, False: 1]
  ------------------
 1213|      0|        formatters_.push_back(details::make_unique<details::S_formatter<Padder>>(padding));
 1214|      0|        need_localtime_ = true;
 1215|      0|        break;
 1216|       |
 1217|      0|    case ('e'): // milliseconds
  ------------------
  |  Branch (1217:5): [True: 0, False: 1]
  ------------------
 1218|      0|        formatters_.push_back(details::make_unique<details::e_formatter<Padder>>(padding));
 1219|      0|        break;
 1220|       |
 1221|      0|    case ('f'): // microseconds
  ------------------
  |  Branch (1221:5): [True: 0, False: 1]
  ------------------
 1222|      0|        formatters_.push_back(details::make_unique<details::f_formatter<Padder>>(padding));
 1223|      0|        break;
 1224|       |
 1225|      0|    case ('F'): // nanoseconds
  ------------------
  |  Branch (1225:5): [True: 0, False: 1]
  ------------------
 1226|      0|        formatters_.push_back(details::make_unique<details::F_formatter<Padder>>(padding));
 1227|      0|        break;
 1228|       |
 1229|      0|    case ('E'): // seconds since epoch
  ------------------
  |  Branch (1229:5): [True: 0, False: 1]
  ------------------
 1230|      0|        formatters_.push_back(details::make_unique<details::E_formatter<Padder>>(padding));
 1231|      0|        break;
 1232|       |
 1233|      0|    case ('p'): // am/pm
  ------------------
  |  Branch (1233:5): [True: 0, False: 1]
  ------------------
 1234|      0|        formatters_.push_back(details::make_unique<details::p_formatter<Padder>>(padding));
 1235|      0|        need_localtime_ = true;
 1236|      0|        break;
 1237|       |
 1238|      0|    case ('r'): // 12 hour clock 02:55:02 pm
  ------------------
  |  Branch (1238:5): [True: 0, False: 1]
  ------------------
 1239|      0|        formatters_.push_back(details::make_unique<details::r_formatter<Padder>>(padding));
 1240|      0|        need_localtime_ = true;
 1241|      0|        break;
 1242|       |
 1243|      0|    case ('R'): // 24-hour HH:MM time
  ------------------
  |  Branch (1243:5): [True: 0, False: 1]
  ------------------
 1244|      0|        formatters_.push_back(details::make_unique<details::R_formatter<Padder>>(padding));
 1245|      0|        need_localtime_ = true;
 1246|      0|        break;
 1247|       |
 1248|      0|    case ('T'):
  ------------------
  |  Branch (1248:5): [True: 0, False: 1]
  ------------------
 1249|      0|    case ('X'): // ISO 8601 time format (HH:MM:SS)
  ------------------
  |  Branch (1249:5): [True: 0, False: 1]
  ------------------
 1250|      0|        formatters_.push_back(details::make_unique<details::T_formatter<Padder>>(padding));
 1251|      0|        need_localtime_ = true;
 1252|      0|        break;
 1253|       |
 1254|      0|    case ('z'): // timezone
  ------------------
  |  Branch (1254:5): [True: 0, False: 1]
  ------------------
 1255|      0|        formatters_.push_back(details::make_unique<details::z_formatter<Padder>>(padding));
 1256|      0|        need_localtime_ = true;
 1257|      0|        break;
 1258|       |
 1259|      0|    case ('P'): // pid
  ------------------
  |  Branch (1259:5): [True: 0, False: 1]
  ------------------
 1260|      0|        formatters_.push_back(details::make_unique<details::pid_formatter<Padder>>(padding));
 1261|      0|        break;
 1262|       |
 1263|      0|    case ('^'): // color range start
  ------------------
  |  Branch (1263:5): [True: 0, False: 1]
  ------------------
 1264|      0|        formatters_.push_back(details::make_unique<details::color_start_formatter>(padding));
 1265|      0|        break;
 1266|       |
 1267|      0|    case ('$'): // color range end
  ------------------
  |  Branch (1267:5): [True: 0, False: 1]
  ------------------
 1268|      0|        formatters_.push_back(details::make_unique<details::color_stop_formatter>(padding));
 1269|      0|        break;
 1270|       |
 1271|      0|    case ('@'): // source location (filename:filenumber)
  ------------------
  |  Branch (1271:5): [True: 0, False: 1]
  ------------------
 1272|      0|        formatters_.push_back(details::make_unique<details::source_location_formatter<Padder>>(padding));
 1273|      0|        break;
 1274|       |
 1275|      0|    case ('s'): // short source filename - without directory name
  ------------------
  |  Branch (1275:5): [True: 0, False: 1]
  ------------------
 1276|      0|        formatters_.push_back(details::make_unique<details::short_filename_formatter<Padder>>(padding));
 1277|      0|        break;
 1278|       |
 1279|      0|    case ('g'): // full source filename
  ------------------
  |  Branch (1279:5): [True: 0, False: 1]
  ------------------
 1280|      0|        formatters_.push_back(details::make_unique<details::source_filename_formatter<Padder>>(padding));
 1281|      0|        break;
 1282|       |
 1283|      0|    case ('#'): // source line number
  ------------------
  |  Branch (1283:5): [True: 0, False: 1]
  ------------------
 1284|      0|        formatters_.push_back(details::make_unique<details::source_linenum_formatter<Padder>>(padding));
 1285|      0|        break;
 1286|       |
 1287|      0|    case ('!'): // source funcname
  ------------------
  |  Branch (1287:5): [True: 0, False: 1]
  ------------------
 1288|      0|        formatters_.push_back(details::make_unique<details::source_funcname_formatter<Padder>>(padding));
 1289|      0|        break;
 1290|       |
 1291|      0|    case ('%'): // % char
  ------------------
  |  Branch (1291:5): [True: 0, False: 1]
  ------------------
 1292|      0|        formatters_.push_back(details::make_unique<details::ch_formatter>('%'));
 1293|      0|        break;
 1294|       |
 1295|      0|    case ('u'): // elapsed time since last log message in nanos
  ------------------
  |  Branch (1295:5): [True: 0, False: 1]
  ------------------
 1296|      0|        formatters_.push_back(details::make_unique<details::elapsed_formatter<Padder, std::chrono::nanoseconds>>(padding));
 1297|      0|        break;
 1298|       |
 1299|      0|    case ('i'): // elapsed time since last log message in micros
  ------------------
  |  Branch (1299:5): [True: 0, False: 1]
  ------------------
 1300|      0|        formatters_.push_back(details::make_unique<details::elapsed_formatter<Padder, std::chrono::microseconds>>(padding));
 1301|      0|        break;
 1302|       |
 1303|      0|    case ('o'): // elapsed time since last log message in millis
  ------------------
  |  Branch (1303:5): [True: 0, False: 1]
  ------------------
 1304|      0|        formatters_.push_back(details::make_unique<details::elapsed_formatter<Padder, std::chrono::milliseconds>>(padding));
 1305|      0|        break;
 1306|       |
 1307|      0|    case ('O'): // elapsed time since last log message in seconds
  ------------------
  |  Branch (1307:5): [True: 0, False: 1]
  ------------------
 1308|      0|        formatters_.push_back(details::make_unique<details::elapsed_formatter<Padder, std::chrono::seconds>>(padding));
 1309|      0|        break;
 1310|       |
 1311|      0|    default: // Unknown flag appears as is
  ------------------
  |  Branch (1311:5): [True: 0, False: 1]
  ------------------
 1312|      0|        auto unknown_flag = details::make_unique<details::aggregate_formatter>();
 1313|       |
 1314|      0|        if (!padding.truncate_)
  ------------------
  |  Branch (1314:13): [True: 0, False: 0]
  ------------------
 1315|      0|        {
 1316|      0|            unknown_flag->add_ch('%');
 1317|      0|            unknown_flag->add_ch(flag);
 1318|      0|            formatters_.push_back((std::move(unknown_flag)));
 1319|      0|        }
 1320|       |        // fix issue #1617 (prev char was '!' and should have been treated as funcname flag instead of truncating flag)
 1321|       |        // spdlog::set_pattern("[%10!] %v") => "[      main] some message"
 1322|       |        // spdlog::set_pattern("[%3!!] %v") => "[mai] some message"
 1323|      0|        else
 1324|      0|        {
 1325|      0|            padding.truncate_ = false;
 1326|      0|            formatters_.push_back(details::make_unique<details::source_funcname_formatter<Padder>>(padding));
 1327|      0|            unknown_flag->add_ch(flag);
 1328|      0|            formatters_.push_back((std::move(unknown_flag)));
 1329|      0|        }
 1330|       |
 1331|      0|        break;
 1332|      1|    }
 1333|      1|}
_ZN6spdlog17pattern_formatter6formatERKNS_7details7log_msgERN3fmt2v919basic_memory_bufferIcLm250ENSt3__19allocatorIcEEEE:
 1064|  15.4M|{
 1065|  15.4M|    if (need_localtime_)
  ------------------
  |  Branch (1065:9): [True: 15.4M, False: 0]
  ------------------
 1066|  15.4M|    {
 1067|  15.4M|        const auto secs = std::chrono::duration_cast<std::chrono::seconds>(msg.time.time_since_epoch());
 1068|  15.4M|        if (secs != last_log_secs_)
  ------------------
  |  Branch (1068:13): [True: 35, False: 15.4M]
  ------------------
 1069|     35|        {
 1070|     35|            cached_tm_ = get_time_(msg);
 1071|     35|            last_log_secs_ = secs;
 1072|     35|        }
 1073|  15.4M|    }
 1074|       |
 1075|  15.4M|    for (auto &f : formatters_)
  ------------------
  |  Branch (1075:18): [True: 15.4M, False: 15.4M]
  ------------------
 1076|  15.4M|    {
 1077|  15.4M|        f->format(msg, cached_tm_, dest);
 1078|  15.4M|    }
 1079|       |    // write eol
 1080|  15.4M|    details::fmt_helper::append_string_view(eol_, dest);
 1081|  15.4M|}
_ZN6spdlog17pattern_formatter9get_time_ERKNS_7details7log_msgE:
 1096|     35|{
 1097|     35|    if (pattern_time_type_ == pattern_time_type::local)
  ------------------
  |  Branch (1097:9): [True: 35, False: 0]
  ------------------
 1098|     35|    {
 1099|     35|        return details::os::localtime(log_clock::to_time_t(msg.time));
 1100|     35|    }
 1101|      0|    return details::os::gmtime(log_clock::to_time_t(msg.time));
 1102|     35|}

_ZN6spdlog7details14flag_formatterC2ENS0_12padding_infoE:
   55|      4|    {}
_ZN6spdlog7details14flag_formatterD2Ev:
   57|      4|    virtual ~flag_formatter() = default;
_ZN6spdlog7details12padding_infoC2Ev:
   32|      4|    padding_info() = default;
_ZNK6spdlog7details12padding_info7enabledEv:
   41|      1|    {
   42|      1|        return enabled_;
   43|      1|    }

_ZN6spdlog5sinks21ansicolor_stdout_sinkINS_7details13console_mutexEEC2ENS_10color_modeE:
  136|      1|{}
_ZN6spdlog5sinks14ansicolor_sinkINS_7details13console_mutexEEC2EP8_IO_FILENS_10color_modeE:
   22|      1|{
   23|      1|    set_color_mode(mode);
   24|      1|    colors_[level::trace] = to_string_(white);
   25|      1|    colors_[level::debug] = to_string_(cyan);
   26|      1|    colors_[level::info] = to_string_(green);
   27|      1|    colors_[level::warn] = to_string_(yellow_bold);
   28|      1|    colors_[level::err] = to_string_(red_bold);
   29|      1|    colors_[level::critical] = to_string_(bold_on_red);
   30|      1|    colors_[level::off] = to_string_(reset);
   31|      1|}
_ZN6spdlog5sinks14ansicolor_sinkINS_7details13console_mutexEE14set_color_modeENS_10color_modeE:
   97|      1|{
   98|      1|    switch (mode)
   99|      1|    {
  100|      0|    case color_mode::always:
  ------------------
  |  Branch (100:5): [True: 0, False: 1]
  ------------------
  101|      0|        should_do_colors_ = true;
  102|      0|        return;
  103|      1|    case color_mode::automatic:
  ------------------
  |  Branch (103:5): [True: 1, False: 0]
  ------------------
  104|      1|        should_do_colors_ = details::os::in_terminal(target_file_) && details::os::is_color_terminal();
  ------------------
  |  Branch (104:29): [True: 0, False: 1]
  |  Branch (104:71): [True: 0, False: 0]
  ------------------
  105|      1|        return;
  106|      0|    case color_mode::never:
  ------------------
  |  Branch (106:5): [True: 0, False: 1]
  ------------------
  107|      0|        should_do_colors_ = false;
  108|      0|        return;
  109|      0|    default:
  ------------------
  |  Branch (109:5): [True: 0, False: 1]
  ------------------
  110|      0|        should_do_colors_ = false;
  111|      1|    }
  112|      1|}
_ZN6spdlog5sinks14ansicolor_sinkINS_7details13console_mutexEE10to_string_ERKN3fmt2v917basic_string_viewIcEE:
  128|      7|{
  129|      7|    return std::string(sv.data(), sv.size());
  130|      7|}

_ZN6spdlog5sinks14ansicolor_sinkINS_7details13console_mutexEED2Ev:
   30|      1|    ~ansicolor_sink() override = default;

_ZN6spdlog5sinks9base_sinkINSt3__15mutexEEC2Ev:
   18|      1|{}
_ZN6spdlog5sinks9base_sinkINSt3__15mutexEE3logERKNS_7details7log_msgE:
   27|  15.4M|{
   28|  15.4M|    std::lock_guard<Mutex> lock(mutex_);
   29|  15.4M|    sink_it_(msg);
   30|  15.4M|}
_ZN6spdlog5sinks9base_sinkINSt3__15mutexEE13set_formatterENS2_10unique_ptrINS_9formatterENS2_14default_deleteIS6_EEEE:
   48|      1|{
   49|      1|    std::lock_guard<Mutex> lock(mutex_);
   50|      1|    set_formatter_(std::move(sink_formatter));
   51|      1|}
_ZN6spdlog5sinks9base_sinkINSt3__15mutexEE14set_formatter_ENS2_10unique_ptrINS_9formatterENS2_14default_deleteIS6_EEEE:
   61|      1|{
   62|      1|    formatter_ = std::move(sink_formatter);
   63|      1|}

_ZN6spdlog5sinks9base_sinkINSt3__15mutexEED2Ev:
   24|      1|    ~base_sink() override = default;

_ZN6spdlog5sinks15basic_file_sinkINSt3__15mutexEEC2ERKNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEbRKNS_19file_event_handlersE:
   19|      1|{
   20|      1|    file_helper_.open(filename, truncate);
   21|      1|}
_ZN6spdlog5sinks15basic_file_sinkINSt3__15mutexEE8sink_it_ERKNS_7details7log_msgE:
   31|  15.4M|{
   32|  15.4M|    memory_buf_t formatted;
   33|  15.4M|    base_sink<Mutex>::formatter_->format(msg, formatted);
   34|  15.4M|    file_helper_.write(formatted);
   35|  15.4M|}

_ZN6spdlog15basic_logger_mtINS_19synchronous_factoryEEENSt3__110shared_ptrINS_6loggerEEERKNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESD_bRKNS_19file_event_handlersE:
   45|      1|{
   46|      1|    return Factory::template create<sinks::basic_file_sink_mt>(logger_name, filename, truncate, event_handlers);
   47|      1|}

_ZNK6spdlog5sinks4sink10should_logENS_5level10level_enumE:
   13|  15.4M|{
   14|  15.4M|    return msg_level >= level_.load(std::memory_order_relaxed);
   15|  15.4M|}

_ZN6spdlog5sinks4sinkD2Ev:
   15|      2|    virtual ~sink() = default;

_ZN6spdlog18set_default_loggerENSt3__110shared_ptrINS_6loggerEEE:
  116|      1|{
  117|      1|    details::registry::instance().set_default_logger(std::move(default_logger));
  118|      1|}
_ZN6spdlog16enable_backtraceEm:
   36|    512|{
   37|    512|    details::registry::instance().enable_backtrace(n_messages);
   38|    512|}
_ZN6spdlog14dump_backtraceEv:
   46|    512|{
   47|    512|    default_logger_raw()->dump_backtrace();
   48|    512|}
_ZN6spdlog18default_logger_rawEv:
  111|  15.4M|{
  112|  15.4M|    return details::registry::instance().get_default_raw();
  113|  15.4M|}

_ZN6spdlog5debugINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvRKT_:
  261|  15.4M|{
  262|  15.4M|    default_logger_raw()->debug(msg);
  263|  15.4M|}

