qmetrics.net

line_profiler

Line-by-line profiler for Python functions

The lineprofiler package profiles decorated Python functions line by line; kernprof is its CLI helper, and setting LINEPROFILE=1 prints a timing summary when the script exits.

Overview

line_profiler measures how much time each source line spends inside functions you mark for profiling. It targets cases where whole-function timing shows a hotspot but you need finer detail inside the function body.

The current workflow imports profile from lineprofiler, decorates selected functions, sets LINEPROFILE=1, and runs your script normally. When execution finishes, stdout shows a results summary, output file locations, and how to inspect details further.

kernprof remains supported as an older entry point, for example kernprof -lv scripttoprofile.py, alongside IPython integration installable via an optional extra. Basic usage, examples, lower-level APIs, and FAQ material are covered in the documentation.

Install from PyPI with pip; current releases require Python 3.10 or newer, with older releases for earlier Python versions. Wheels exist for common platforms, otherwise a C compiler or Cython may be needed when building from source.

Key features

  • Per-line timing inside functions
  • @profile decorator workflow
  • LINEPROFILE environment toggle
  • kernprof command-line helper
  • Optional IPython extra
  • Stdout summary on script exit
  • PyPI wheels for common platforms

Use cases

  • Finding slow lines inside a hot function
  • Profiling Python scripts during development
  • Comparing line costs after optimizations
  • Using kernprof on standalone scripts
  • Interactive profiling with IPython extras

Similar software

AgentOps

Open-source observability SDK for AI agents

AgentOps is a Python SDK that monitors AI agents, tracks LLM costs, and records sessions for debugging. It plugs into common agent frameworks and model providers.

  • Session replay analytics
  • LLM cost tracking
  • Framework integrations
PythonDetails →
★ 6k⟳ 5 months agoMIT

Clockwork

In-browser PHP application runtime inspector

Clockwork is a PHP development library that records request, command, queue, and test runtime details and exposes them in a browser UI. It captures queries, logs, events, jobs, views, and performance data.

  • HTTP request profiling data
  • Database and cache query logging
  • Redis command and event capture
PHPDetails →
★ 5.9k⟳ 3 months agoMIT

Django Silk

Live profiling and request inspection for Django

Silk is a Django package that records HTTP requests, SQL queries, and optional Python profiles, then exposes them in a /silk/ web UI for debugging slow pages and queries.

  • HTTP request and SQL capture
  • Web UI at /silk/
  • Optional cProfile per request
PythonDetails →
★ 5k⟳ 1 month agoMIT

Micrometer

Vendor-neutral JVM application observability facade

Micrometer instruments JVM applications with dimensional metrics and tracing through a neutral API. You choose Prometheus, Datadog, OTLP, and many other backends at deploy time.

  • Vendor-neutral metrics API
  • Dimensional meters
  • Many backend registries
JavaDetails →
★ 4.9k⟳ todayApache-2.0

Log Viewer

Browser log viewer package for Laravel applications

Laravel package that adds a web UI to read, search, and filter application and server log files in the browser.

  • Laravel storage log browsing
  • Horizon, web server, and service logs
  • Search and level filtering
PHPWebDetails →
★ 4.4k⟳ 5 months agoMIT

KOOM

Android online memory monitoring for OOM and heap leaks

KOOM is Kwai's toolkit for high-performance online memory monitoring on mobile. It reports when out-of-memory-related problems occur and is available for Android apps.

  • Online OOM and memory issue reporting
  • Java heap leak monitoring module
  • Native heap leak monitoring
C++AndroidDetails →
★ 3.4k⟳ 1 month agoApache-2.0 · open core