A heap memory profiler for Linux
This report presents the forensic synthetic code analysis of KDE/heaptrack, a C++ project with 4,122 GitHub stars. SynthScan v2.0 examined 31,283 lines of code across 150 source files, recording 93 pattern matches distributed across 4 syntactic categories. The overall adjusted score of 2.4 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
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 statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| 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 |