Skip to content

akshaya1255/live-performance-profiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live-Performance System Profiler

A low-latency telemetry bridge designed to capture and visualize microsecond-level execution data from C++ applications without the performance overhead of standard networking or file I/O.

System Profiler Demo

Architecture Overview

The system is built as a cross-language distributed pipeline, prioritizing minimal "Observer Effect" on the target application:

  1. C++ Engine (Producer): A header-only instrumentation library using RAII patterns to measure function scopes with std::chrono::high_resolution_clock.
  2. IPC Layer (Bridge): Utilizes Win32 Shared Memory (Memory Mapped Files) to offload data from the C++ process with near-zero latency.
  3. Python Broker (Middleware): A FastAPI service that maps to the shared RAM block, unpacks binary data into JSON, and broadcasts via WebSockets.
  4. Web Dashboard (Consumer): A Next.js 15 frontend utilizing Chart.js for real-time jitter visualization and telemetry logging.

Tech Stack

  • Languages: C++14, Python 3.10, JavaScript (ES6+)
  • IPC: Win32 API (CreateFileMapping, MapViewOfFile)
  • Backend: FastAPI, Uvicorn, mmap
  • Frontend: Next.js 15 (App Router), Tailwind CSS, Chart.js

Key Features

  • Multi-Trace Visualization: Automatically detects and tracks multiple function scopes (e.g., Physics, AI, Main Loop) with unique color-coded datasets.
  • Zero-Network Overhead: By using Shared Memory instead of HTTP/gRPC for the initial data jump, the profiler maintains microsecond precision even in tight loops.
  • Dynamic Charting: High-frequency graph updates with disabled animations for a snappy, utility-focused user experience.
  • Session Export: One-click CSV Export functionality for post-mortem analysis and performance auditing.

Project Structure

LIVE-PERFORMANCE-PROFILER/
├── backend/            # FastAPI & Memory Mapping logic
├── cpp_lib/            # C++ Instrumentation Library
│   ├── include/        # Profiler.h (RAII Sensor)
│   └── examples/       # main.cpp (Simulated Workload)
├── frontend/           # Next.js Dashboard
├── docs/               # Technical documentation & Assets
└── run_project.bat     # One-click startup script

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors