pyutils/line_profiler

Line-by-line profiling for Python

View on GitHub ↗Jump to charts ↓Open shareable report →

Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 14 minutes ago
Type:Library / SDKCategory(s):Debugging & ProfilingDeveloper Tools
Added to GitGenius on September 21st, 2026
Created on December 10th, 2019
Open Issues & Pull Requests: 58 (+0)
GitHub issues: Enabled
Number of forks: 142
Total Stargazers: 3,243 (+0)
Total Subscribers: 12 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.9 hours
Mean response time: 38.6 days
90th percentile: 33.4 days
Tracked items: 51

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 19
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 655 days
Stale 30+ days: 18
Stale 90+ days: 17

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • help wanted (4)
  • bug (2)
  • good first issue (1)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

line_profiler is a Python profiling tool that performs line-by-line analysis of function execution time.

The tool addresses the problem of identifying performance bottlenecks within slow functions. When function-level profiling reveals a slow function, developers need visibility into which individual source lines consume the most time. line_profiler solves this by instrumenting functions with the @profile decorator and measuring execution time at the line level. The kernprof command-line utility included with the package orchestrates the profiling process. The recommended workflow involves importing profile, decorating target functions, and running the script with the LINE_PROFILE environment variable set to enable profiling output.

Developers should choose this tool when they have already identified a slow function through higher-level profiling and need to drill down to the source line responsible for the performance issue. It suits any Python project where understanding fine-grained execution time distribution is necessary for optimization. The tool maintains backward compatibility with the older kernprof command-line workflow for users accustomed to that interface, though the environment variable approach is now the primary recommended method.

The project is actively maintained as the official continuation of an earlier unmaintained package. Development includes regular updates to support current Python versions, with wheels published for common platforms to minimize installation friction. The codebase maintains comprehensive documentation covering basic usage, examples, and frequently asked questions, alongside an active issue tracker for bug reports and feature requests.