{
 "kind": "tool",
 "slug": "line-profiler",
 "path": "tools/line-profiler/",
 "name": "line_profiler",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Logging, monitoring and analytics",
   "tools/observability-analytics/"
  ]
 ],
 "lead": "Line-by-line profiling of Python functions.",
 "chips": [
  {
   "label": "Logging, monitoring and analytics",
   "path": "tools/observability-analytics/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install line-profiler"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/pyutils/line_profiler"
  },
  {
   "label": "Website",
   "href": "https://github.com/pyutils/line_profiler"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "BSD-3-Clause",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI license expression.",
   "src": "https://github.com/pyutils/line_profiler"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 13, 2026",
   "note": "Latest GitHub release Oct 18, 2026. ",
   "src": "https://github.com/pyutils/line_profiler"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "2 projects",
   "status": "info",
   "sub": "#88 of 121 in its category",
   "note": "Dependency in 2 public GitHub projects set up for AI coding agents that we scanned (0.0%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What line_profiler does",
   "parts": [
    {
     "t": "prose",
     "text": "Line-by-line profiling of Python functions."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "line_profiler popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "39",
       "of": "/ 100",
       "l": "Gid Score, #3247 overall"
      },
      {
       "n": "467K",
       "l": "downloads a week, pypi"
      },
      {
       "n": "3,252",
       "l": "GitHub stars"
      },
      {
       "n": "2",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How line_profiler is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "line_profiler joined the catalog on its public numbers (466,683 downloads a week on PyPI and 3,252 GitHub stars), not on our project count: it is a dependency in 12 public GitHub projects of our scan, 2 of them set up for AI coding agents.",
      "Projects that use it most often also use NumPy (83.3%), pandas (83.3%), Matplotlib (75.0%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 83.3% of its projects",
       "v": "NumPy",
       "path": "tools/numpy/"
      },
      {
       "l": "In 83.3% of its projects",
       "v": "pandas",
       "path": "tools/pandas/"
      },
      {
       "l": "In 75.0% of its projects",
       "v": "Matplotlib",
       "path": "tools/matplotlib/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "Beautiful Soup",
       "path": "tools/beautifulsoup4/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "Black",
       "path": "tools/black/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "Colorama",
       "path": "tools/colorama/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "cryptography",
       "path": "tools/cryptography/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "flake8",
       "path": "tools/flake8/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about line_profiler",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Logging, monitoring and analytics",
       "path": "tools/observability-analytics/",
       "items": [
        {
         "text": "Vercel Analytics",
         "path": "tools/vercel-analytics/"
        },
        {
         "text": "psutil",
         "path": "tools/psutil/"
        },
        {
         "text": "Vercel Speed Insights",
         "path": "tools/vercel-speed-insights/"
        },
        {
         "text": "Sentry for Next.js",
         "path": "tools/sentry-nextjs/"
        },
        {
         "text": "OpenTelemetry",
         "path": "tools/opentelemetry/"
        },
        {
         "text": "Pino",
         "path": "tools/pino/"
        },
        {
         "text": "structlog",
         "path": "tools/structlog/"
        },
        {
         "text": "PostHog JS",
         "path": "tools/posthog-js/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "line_profiler",
       "me": true,
       "facts": [
        "BSD-3-Clause",
        "Gid 39",
        "467K/wk"
       ]
      }
     ],
     "more": "Compare line_profiler with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install line-profiler"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for line_profiler yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi line-profiler"
  ],
  [
   "Category",
   "Logging, monitoring and analytics"
  ],
  [
   "License",
   "BSD-3-Clause"
  ],
  [
   "Gid Score",
   "39.1"
  ],
  [
   "Rank in category",
   "#88 of 121"
  ],
  [
   "GitHub",
   "pyutils/line_profiler"
  ],
  [
   "Last change",
   "Nov 13, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/pyutils.png"
}