Repository Analysis

wolfpld/tracy

Frame profiler

2.6 Likely human-written View on GitHub
2.6
Adjusted Score
2.6
Raw Score
100%
Time Factor
2026-05-30
Last Push
16,051
Stars
C++
Language
164,044
Lines of Code
366
Files
464
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 1LOW 463

Pattern Findings

464 matches across 7 categories. Click a row to expand file-level details.

Over-Commented Block430 hits · 383 pts
SeverityFileLineSnippet
LOWcapture/src/capture.cpp1#ifdef _WIN32
LOWcapture/src/CaptureOutput.hpp1#ifndef __CAPTUREOUTPUT_HPP__
LOWcapture/src/capturedaemon.cpp1#ifdef _WIN32
LOWcapture/src/CaptureOutput.cpp1#ifdef _WIN32
LOWmonitor/src/monitor.cpp1#include <errno.h>
LOWtest/test.cpp1#include <atomic>
LOWtest/stb_image.h121
LOWtest/stb_image.h141// // ... x = width, y = height, n = # 8-bit components per pixel ...
LOWtest/stb_image.h161// output otherwise. E.g. if you set desired_channels to 4, you will always
LOWtest/stb_image.h181// Paletted PNG, BMP, GIF, and PIC images are automatically depalettized.
LOWtest/stb_image.h201// which defaults to 2**24 = 16777216 pixels. Due to the above memory limit,
LOWtest/stb_image.h221// Philosophy
LOWtest/stb_image.h241//
LOWtest/stb_image.h261//
LOWtest/stb_image.h281// interface; if you attempt to load an HDR file, it will be automatically remapped
LOWtest/stb_image.h301// stbi_ldr_to_hdr_gamma(2.2f);
LOWtest/stb_image.h321// says there's premultiplied data (currently only happens in iPhone images,
LOWtest/stb_image.h341//
LOWtest/stb_image.h381 STBI_rgb_alpha = 4
LOWtest/stb_image.h541//
LOWtest/stb_image.h561 #define STBI_NO_PSD
LOWtest/stb_image.h581#define STBI_NO_ZLIB
LOWtest/stb_image.h601#define STBI_ASSERT(x) assert(x)
LOWtest/stb_image.h621#ifndef STBI_NO_THREAD_LOCALS
LOWtest/stb_image.h661#ifdef _MSC_VER
LOWtest/stb_image.h681#define STBI_REALLOC(p,newsz) realloc(p,newsz)
LOWtest/stb_image.h701// exposed in GCC/Clang is, sadly, not really suited for one-file libs.
LOWtest/stb_image.h761
LOWtest/stb_image.h781#include <arm_neon.h>
LOWtest/stb_image.h981#endif
LOWtest/stb_image.h1081 return a >= SHRT_MIN / b;
LOWtest/stb_image.h1141
LOWtest/stb_image.h1161
LOWtest/stb_image.h1721{
LOWtest/stb_image.h1901 if (z > 255) z = 255;
LOWtest/stb_image.h1921// - non-interleaved case requires this anyway
LOWtest/stb_image.h2901
LOWtest/stb_image.h4081// - all input must be provided in an upfront buffer
LOWtest/stb_image.h6161 return stbi__errpuc("unsupported bit depth", "PSD bit depth is not 8 or 16 bit");
LOWupdate/src/OfflineSymbolResolverDbgHelper.cpp1#ifdef _WIN32
LOWupdate/src/update.cpp1#ifdef _WIN32
LOWpython/bindings/NameBuffer.hpp1#pragma once
LOWpython/bindings/ServerModule.cpp1#include <pybind11/pybind11.h>
LOWpython/bindings/ServerModule.cpp1081 } );
LOWmerge/src/merge.cpp1#include "TracyFileRead.hpp"
LOWserver/TracyFileRead.hpp1#ifndef __TRACYFILEREAD_HPP__
LOWserver/TracyWorker.cpp1#ifdef _MSC_VER
LOWserver/TracyWorker.cpp21#include <inttypes.h>
LOWserver/TracyFileWrite.hpp1#ifndef __TRACYFILEWRITE_HPP__
LOWserver/TracyVector.hpp1#ifndef __TRACYVECTOR_HPP__
LOWserver/TracySort.hpp1#ifndef __TRACYSORT_HPP__
LOWserver/TracyMmap.hpp1#ifndef __TRACYMMAP_HPP__
LOWserver/TracyEvent.hpp1#ifndef __TRACYEVENT_HPP__
LOWserver/tracy_pdqsort.h21
LOWserver/tracy_xxhash.h281 * avoiding naming collision with previous inclusions.
LOWserver/tracy_xxhash.h301# undef XXH64_freeState
LOWserver/tracy_xxhash.h321# undef XXH3_generateSecret
LOWserver/tracy_xxhash.h341# define XXH_NAMESPACE XXH_INLINE_
LOWserver/tracy_xxhash.h361# define XXH3_state_t XXH_IPREF(XXH3_state_t)
LOWserver/tracy_xxhash.h381# endif
370 more matches not shown…
Unused Imports19 hits · 19 pts
SeverityFileLineSnippet
LOWpython/tracy_client/tracy.py5
LOWpython/tracy_client/tracy.py5
LOWpython/tracy_client/tracy.py5
LOWpython/tracy_client/tracy.py5
LOWpython/tracy_client/tracy.py5
LOWpython/tracy_client/tracy.py5
LOWpython/tracy_client/tracy.py5
LOWpython/tracy_client/tracy.py5
LOWpython/tracy_client/tracy.py5
LOWpython/tracy_client/tracy.py5
LOWpython/tracy_client/tracy.py5
LOWpython/tracy_client/tracy.py5
LOWpython/tracy_client/tracy.py5
LOWpython/tracy_client/tracy.py22
LOWpython/tracy_client/tracy.py22
LOWpython/tracy_client/tracy.py22
LOWpython/tracy_client/tracy.py22
LOWpython/tracy_client/__init__.py3
LOWextra/mcp/tracy_mcp.py2
Excessive Try-Catch Wrapping10 hits · 10 pts
SeverityFileLineSnippet
LOWextra/mcp/tracy_mcp.py47 except Exception as e:
LOWextra/mcp/tracy_mcp.py71 except Exception:
LOWextra/mcp/tracy_mcp.py170 except Exception:
LOWextra/mcp/tracy_mcp.py199 except Exception:
LOWextra/mcp/tracy_mcp.py207 except Exception:
LOWextra/mcp/tracy_mcp.py342 except Exception as e:
LOWextra/mcp/tracy_mcp.py360 except Exception:
LOWextra/mcp/tracy_mcp.py435 except Exception as e:
LOWextra/mcp/tracy_mcp.py530 except Exception as e:
LOWextra/mcp/tracy_mcp.py589 except Exception as e:
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMprofiler/wasm/index.html106 // application robust, you may want to override this behavior before shipping!
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippet
LOWextra/mcp/tracy_mcp.py62def _read_bindings_protocol_version() -> int | None:
LOWprofiler/wasm/httpd.py3class MyHTTPRequestHandler(server.SimpleHTTPRequestHandler):
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWextra/mcp/start_mcp.sh4# Set PYTHONPATH to the directory containing TracyServerBindings.so/.pyd.
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippet
LOWextra/mcp/tracy_mcp.py62