A heap memory profiler for Linux
This report summarizes scanner evidence for KDE/heaptrack, a C++ project with 4,190 GitHub stars. SynthScan examined 31,250 lines of code across 150 source files, recording 93 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 2.4 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 88 finding(s).
Are imports declared and package/API names verified? 5 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 93 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 93 distinct pattern matches across 4 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/manual/perf-heaptrack.py | 1 | # | COMMENT |
| LOW | tests/benchmarks/bench_tree.cpp | 1 | /* | COMMENT |
| LOW | 3rdparty/doctest.h | 1 | /* | COMMENT |
| LOW | 3rdparty/doctest.h | 21 | // | COMMENT |
| LOW | 3rdparty/doctest.h | 41 | // which uses the Boost Software License - Version 1.0 | COMMENT |
| LOW | 3rdparty/doctest.h | 61 | #define DOCTEST_TOSTR(x) DOCTEST_TOSTR_IMPL(x) | COMMENT |
| LOW | 3rdparty/doctest.h | 81 | #endif | COMMENT |
| LOW | 3rdparty/doctest.h | 101 | #define DOCTEST_ICC DOCTEST_COMPILER(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, 0) | COMMENT |
| LOW | 3rdparty/doctest.h | 121 | #if DOCTEST_CLANG && !DOCTEST_ICC | COMMENT |
| LOW | 3rdparty/doctest.h | 141 | DOCTEST_GCC_SUPPRESS_WARNING_PUSH DOCTEST_GCC_SUPPRESS_WARNING(w) | COMMENT |
| LOW | 3rdparty/doctest.h | 261 | // general compiler feature support table: https://en.cppreference.com/w/cpp/compiler_support | COMMENT |
| LOW | 3rdparty/doctest.h | 281 | #define DOCTEST_CONFIG_WINDOWS_SEH | COMMENT |
| LOW | 3rdparty/doctest.h | 301 | COMMENT | |
| LOW | 3rdparty/doctest.h | 321 | #if DOCTEST_MSVC | COMMENT |
| LOW | 3rdparty/doctest.h | 341 | #endif // DOCTEST_CONFIG_IMPLEMENTATION_IN_DLL | COMMENT |
| LOW | 3rdparty/doctest.h | 361 | #define DOCTEST_UNUSED | COMMENT |
| LOW | 3rdparty/doctest.h | 381 | #endif // DOCTEST_NORETURN | COMMENT |
| LOW | 3rdparty/doctest.h | 401 | #ifndef DOCTEST_NO_SANITIZE_INTEGER | COMMENT |
| LOW | 3rdparty/doctest.h | 421 | #define DOCTEST_DEFINE_INTERFACE(name) \ | COMMENT |
| LOW | 3rdparty/doctest.h | 441 | #define DOCTEST_PLATFORM_MAC | COMMENT |
| LOW | 3rdparty/doctest.h | 461 | #ifndef DOCTEST_BREAK_INTO_DEBUGGER | COMMENT |
| LOW | 3rdparty/doctest.h | 481 | #define DOCTEST_BREAK_INTO_DEBUGGER() __debugbreak() | COMMENT |
| LOW | 3rdparty/doctest.h | 501 | // which case we don't want to forward declare stuff from std - for reference: | COMMENT |
| LOW | 3rdparty/doctest.h | 561 | #include <type_traits> | COMMENT |
| LOW | 3rdparty/doctest.h | 581 | // Idea taken from this lecture about the string implementation of facebook/folly - fbstring | COMMENT |
| LOW | 3rdparty/doctest.h | 1361 | const DOCTEST_REF_WRAP(R) rhs) { | COMMENT |
| LOW | 3rdparty/doctest.h | 1481 | DOCTEST_RELATIONAL_OP(ne, !=) | COMMENT |
| LOW | 3rdparty/doctest.h | 2121 | COMMENT | |
| LOW | 3rdparty/doctest.h | 2441 | #__VA_ARGS__, __VA_ARGS__) | COMMENT |
| LOW | 3rdparty/doctest.h | 2461 | #define DOCTEST_WARN_EQ(...) DOCTEST_BINARY_ASSERT(DT_WARN_EQ, eq, __VA_ARGS__) | COMMENT |
| LOW | 3rdparty/doctest.h | 2541 | #define DOCTEST_CHECK_THROWS_WITH(expr, ...) DOCTEST_ASSERT_THROWS_WITH(expr, #expr, DT_CHECK_THROWS_WITH, __VA_ARGS__) | COMMENT |
| LOW | 3rdparty/doctest.h | 2561 | #define DOCTEST_WARN_THROWS_WITH_AS_MESSAGE(expr, with, ex, ...) DOCTEST_FUNC_SCOPE_BEGIN { DOCTEST_INFO(__VA_ARGS__); D | COMMENT |
| LOW | 3rdparty/doctest.h | 2621 | COMMENT | |
| LOW | 3rdparty/doctest.h | 2641 | #define DOCTEST_ADD_FAIL_CHECK_AT(file, line, ...) (static_cast<void>(0)) | COMMENT |
| LOW | 3rdparty/doctest.h | 2681 | #define DOCTEST_REQUIRE_EQ(...) [&] { return doctest::detail::eq(__VA_ARGS__); }() | COMMENT |
| LOW | 3rdparty/doctest.h | 2701 | #define DOCTEST_CHECK_UNARY_FALSE(...) [&] { return !(__VA_ARGS__); }() | COMMENT |
| LOW | 3rdparty/doctest.h | 2721 | #define DOCTEST_CHECK_THROWS(...) [&] { try { __VA_ARGS__; return false; } catch (...) { return true; } }() | COMMENT |
| LOW | 3rdparty/doctest.h | 2741 | COMMENT | |
| LOW | 3rdparty/doctest.h | 2761 | #define DOCTEST_WARN_NE(...) DOCTEST_FUNC_EMPTY | COMMENT |
| LOW | 3rdparty/doctest.h | 2781 | #define DOCTEST_CHECK_UNARY_FALSE(...) DOCTEST_FUNC_EMPTY | COMMENT |
| LOW | 3rdparty/doctest.h | 2801 | COMMENT | |
| LOW | 3rdparty/doctest.h | 2821 | COMMENT | |
| LOW | 3rdparty/doctest.h | 2841 | #undef DOCTEST_REQUIRE_LE | COMMENT |
| LOW | 3rdparty/doctest.h | 2861 | #define DOCTEST_CHECK_THROWS(...) DOCTEST_EXCEPTION_EMPTY_FUNC | COMMENT |
| LOW | 3rdparty/doctest.h | 2881 | #define DOCTEST_REQUIRE_THROWS_AS_MESSAGE(expr, ex, ...) DOCTEST_EXCEPTION_EMPTY_FUNC | COMMENT |
| LOW | 3rdparty/doctest.h | 2901 | #define DOCTEST_FAST_REQUIRE_NE DOCTEST_REQUIRE_NE | COMMENT |
| LOW | 3rdparty/doctest.h | 2921 | COMMENT | |
| LOW | 3rdparty/doctest.h | 2941 | COMMENT | |
| LOW | 3rdparty/doctest.h | 2961 | #define ADD_FAIL_CHECK_AT(file, line, ...) DOCTEST_ADD_FAIL_CHECK_AT(file, line, __VA_ARGS__) | COMMENT |
| LOW | 3rdparty/doctest.h | 2981 | #define CHECK_NOTHROW(...) DOCTEST_CHECK_NOTHROW(__VA_ARGS__) | COMMENT |
| LOW | 3rdparty/doctest.h | 3001 | #define CHECK_THROWS_WITH_MESSAGE(expr, with, ...) DOCTEST_CHECK_THROWS_WITH_MESSAGE(expr, with, __VA_ARGS__) | COMMENT |
| LOW | 3rdparty/doctest.h | 3021 | COMMENT | |
| LOW | 3rdparty/doctest.h | 3041 | #define CHECK_UNARY(...) DOCTEST_CHECK_UNARY(__VA_ARGS__) | COMMENT |
| LOW | 3rdparty/doctest.h | 3061 | #define FAST_CHECK_GE(...) DOCTEST_FAST_CHECK_GE(__VA_ARGS__) | COMMENT |
| LOW | 3rdparty/doctest.h | 3161 | #endif // __BORLANDC__ | COMMENT |
| LOW | 3rdparty/doctest.h | 3181 | #define DOCTEST_LOCK_MUTEX(name) std::lock_guard<std::mutex> DOCTEST_ANONYMOUS(DOCTEST_ANON_LOCK_)(name); | COMMENT |
| LOW | 3rdparty/doctest.h | 3201 | #include <sys/sysctl.h> | COMMENT |
| LOW | 3rdparty/doctest.h | 3221 | #endif | COMMENT |
| LOW | 3rdparty/doctest.h | 3241 | COMMENT | |
| LOW | 3rdparty/doctest.h | 3261 | #define DOCTEST_MULTI_LANE_ATOMICS_THREAD_LANES 32 | COMMENT |
| 27 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/manual/perf-heaptrack.py | 17 | CODE | |
| LOW | tests/manual/perf-heaptrack.py | 19 | CODE | |
| LOW | tests/manual/perf-heaptrack.py | 23 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/analyze/accumulatedtracedata.cpp | 564 | // replace by std::identity once we can leverage C++20 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | 3rdparty/robin-map/README.md | 255 | map.insert({employee(1, "John Doe"), 2001}); | CODE |
| LOW | 3rdparty/robin-map/README.md | 256 | map.insert({employee(2, "Jane Doe"), 2002}); | CODE |