Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Small and medium teams
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
sidlovescoding
Cpython
Repository navigation
Code
Pull requests
1
(1)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
Cpython
Lib
cProfile.py
on
sid-python
User selector
All users
Datepicker
All time
Commit history
Commits on Dec 6, 2025
Remove unused imports (#142320)
vstinner
authored
d119443
View commit details
Copy full SHA for d119443
View code at this point
Browse repository at this point
Commits on Aug 27, 2025
gh-138122: Implement PEP 799 (#138142)
pablogsal
authored
56eb6b6
View commit details
Copy full SHA for 56eb6b6
View code at this point
Browse repository at this point
Commits on Apr 24, 2025
gh-132737: Support profiling modules that require __main___ (#132738)
aneeshdurg
authored
c7a7aa9
View commit details
Copy full SHA for c7a7aa9
View code at this point
Browse repository at this point
Commits on May 29, 2024
gh-118673: Remove shebang and executable bits from stdlib modules. (#119658)
Show description for c8b45a3
jaraco
authored
c8b45a3
View commit details
Copy full SHA for c8b45a3
View code at this point
Browse repository at this point
Commits on Feb 16, 2024
gh-69990: Make Profile.print_stats support sorting by multiple values (GH-104590)
Show description for 2a7a002
furkanonder
authored
2a7a002
View commit details
Copy full SHA for 2a7a002
View code at this point
Browse repository at this point
Commits on Apr 27, 2023
gh-103935: Use `io.open_code()` when executing code in trace and profile modules (GH-103947)
gaogaotiantian
authored
d50f01a
View commit details
Copy full SHA for d50f01a
View code at this point
Browse repository at this point
Commits on Oct 6, 2022
gh-65961: Do not rely solely on `__cached__` (GH-97990)
Show description for e1c4d56
brettcannon
authored
e1c4d56
View commit details
Copy full SHA for e1c4d56
View code at this point
Browse repository at this point
Commits on Mar 30, 2022
bpo-34861: Make cumtime the default sorting key for cProfile (GH-31929)
DanielNoord
authored
75eee1d
View commit details
Copy full SHA for 75eee1d
View code at this point
Browse repository at this point
Commits on Jan 20, 2021
bpo-42005: profile and cProfile catch BrokenPipeError (GH-22643)
zmwangx
authored
3554fa4
View commit details
Copy full SHA for 3554fa4
View code at this point
Browse repository at this point
Commits on Oct 18, 2020
bpo-40492: Fix --outfile with relative path when the program changes it working dir (GH-19910)
asottile
authored
3c0ac18
View commit details
Copy full SHA for 3c0ac18
View code at this point
Browse repository at this point
Commits on Jun 5, 2019
[3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620)
Show description for 142566c
serhiy-storchaka
authored
142566c
View commit details
Copy full SHA for 142566c
View code at this point
Browse repository at this point
Commits on May 6, 2019
bpo-36542: Allow to overwrite the signature for Python functions. (GH-12705)
serhiy-storchaka
authored
d53cf99
View commit details
Copy full SHA for d53cf99
View code at this point
Browse repository at this point
Commits on Apr 1, 2019
bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637)
Show description for 42a139e
serhiy-storchaka
authored
42a139e
View commit details
Copy full SHA for 42a139e
View code at this point
Browse repository at this point
Commits on Oct 17, 2018
bpo-23420: Verify the value of '-s' when execute the CLI of cProfile (GH-9925)
Show description for fcd5e84
2 people
authored and
vstinner
committed
fcd5e84
View commit details
Copy full SHA for fcd5e84
View code at this point
Browse repository at this point
Commits on Aug 3, 2018
Fix docstring of Profiler class (GH-8651)
methane
authored
2ebd381
View commit details
Copy full SHA for 2ebd381
View code at this point
Browse repository at this point
Commits on Jun 1, 2018
bpo-29235: Make cProfile.Profile a context manager (GH-6808)
Scott Sanderson
authored and
brettcannon
committed
2e01b75
View commit details
Copy full SHA for 2e01b75
View code at this point
Browse repository at this point
Commits on Nov 8, 2017
bpo-21862: Add -m option to cProfile for profiling modules (#4297)
Show description for 7973e27
CuriousLearner
authored and
pitrou
committed
7973e27
View commit details
Copy full SHA for 7973e27
View code at this point
Browse repository at this point
Commits on Feb 25, 2013
Fix #17197: profile/cProfile modules refactored so that code of run() and runctx() utility functions is not duplicated in both modules.
giampaolo
committed
fca677a
View commit details
Copy full SHA for fca677a
View code at this point
Browse repository at this point
Commits on Feb 12, 2013
modernize some modules' code by using with statement around open()
giampaolo
committed
2f50aaf
View commit details
Copy full SHA for 2f50aaf
View code at this point
Browse repository at this point
Commits on Aug 2, 2010
#9428: fix running scripts from profile/cProfile with their own name and the right namespace. Same fix as for trace.py in #1690103.
birkenfeld
committed
8e43fbf
View commit details
Copy full SHA for 8e43fbf
View code at this point
Browse repository at this point
Commits on Mar 11, 2010
convert shebang lines: python -> python3
benjaminp
committed
90f5ba5
View commit details
Copy full SHA for 90f5ba5
View code at this point
Browse repository at this point
Commits on Sep 4, 2009
Remove the just-removed "help" from __all__.
birkenfeld
committed
b6b1324
View commit details
Copy full SHA for b6b1324
View code at this point
Browse repository at this point
Remove backwards compatibility stuff from profile/cProfile.
birkenfeld
committed
85477af
View commit details
Copy full SHA for 85477af
View code at this point
Browse repository at this point
Commits on Oct 16, 2007
Patch# 1258 by Christian Heimes: kill basestring.
Show description for 3172c5d
gvanrossum
committed
3172c5d
View commit details
Copy full SHA for 3172c5d
View code at this point
Browse repository at this point
Commits on Aug 12, 2007
Kill execfile(), use exec() instead
nnorwitz
committed
0168802
View commit details
Copy full SHA for 0168802
View code at this point
Browse repository at this point
Commits on Jul 16, 2007
Fix for cProfile.
Show description for 1c5a98a
gvanrossum
committed
1c5a98a
View commit details
Copy full SHA for 1c5a98a
View code at this point
Browse repository at this point
Commits on Feb 9, 2007
Fix most trivially-findable print statements.
Show description for be19ed7
gvanrossum
committed
be19ed7
View commit details
Copy full SHA for be19ed7
View code at this point
Browse repository at this point
Commits on Sep 6, 2006
Patch #1550800: make exec a function.
birkenfeld
committed
7cae87c
View commit details
Copy full SHA for 7cae87c
View code at this point
Browse repository at this point
Commits on Feb 8, 2006
Added the cProfile module.
Show description for a871ef2
arigo
committed
a871ef2
View commit details
Copy full SHA for a871ef2
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.