pyinstrument
π΄Β Call stack profiler for Python. Shows you why your code is slow!
File Explorer
Download Latest Version (.zip)- devcontainer.json
- Dockerfile
- reinstall-cmake.sh
- test.yml
- wheels.yml
- dependabot.yml
- build_js_bundle.py
- bump_version.py
- create_demo_data.py
- create_sample_json.py
- serve_docs
- django_template_render-CIkNzFIy.js
- index-BwGBF3cE.js
- index-CCEFeDHu.css
- sympy_calculation-B9Pn_4RL.js
- wikipedia_article_word_count-CGt_pvsZ.js
- index.html
- signature_change.py
- async-context.svg
- screenshot.jpg
- timeline.png
- conf.py
- guide.md
- home.md
- how-it-works.md
- index.md
- Makefile
- reference.md
- template.html
- template_base.html
- __init__.py
- settings.py
- urls.py
- views.py
- .gitignore
- manage.py
- README.md
- django_template_render.py
- sympy_calculation.py
- wikipedia_article_word_count.py
- aiohttp_web_hello.py
- async_example_simple.py
- async_experiment_1.py
- async_experiment_3.py
- busy_wait.py
- c_sort.py
- context_api.py
- falcon_hello.py
- falcon_hello_file.py
- flask_hello.py
- litestar_hello.py
- np_c_function.py
- tbhide_demo.py
- django_template_render.json
- sympy_calculation.json
- wikipedia_article_word_count.json
- DemoApp.svelte
- main.ts
- favicon.png
- CallStackView.svelte
- CogIcon.svelte
- Frame.svelte
- Header.svelte
- Logo.svelte
- TimelineCanvasView.ts
- TimelineCanvasViewTooltip.svelte
- TimelineView.svelte
- ViewOptions.svelte
- ViewOptionsCallStack.svelte
- ViewOptionsTimeline.svelte
- Frame.ts
- FrameGroup.ts
- frameOps.test.ts
- frameOps.ts
- modelUtil.ts
- processors.ts
- Session.ts
- appState.ts
- CanvasView.ts
- color.ts
- dataTypes.ts
- DevicePixelRatioObserver.ts
- settings.ts
- utils.ts
- app.css
- App.svelte
- main.ts
- types.d.ts
- vite-env.d.ts
- .editorconfig
- .gitignore
- index.html
- package-lock.json
- package.json
- svelte.config.js
- tsconfig.json
- tsconfig.node.json
- vite.config.ts
- count_samples.py
- frame_info.py
- interrupt.py
- multi_overhead.py
- overflow.py
- overhead.py
- pyi_floatclock.c
- pyi_floatclock.h
- pyi_shared.h
- pyi_timing_thread.c
- pyi_timing_thread.h
- pyi_timing_thread_python.py
- stat_profile.c
- stat_profile.pyi
- stat_profile_python.py
- types.py
- __init__.py
- _utils.py
- magic.py
- app.css
- app.js
- __init__.py
- base.py
- console.py
- html.py
- jsonrenderer.py
- pstatsrenderer.py
- session.py
- speedscope.py
- __init__.py
- decorator.py
- keypath.py
- __init__.py
- __main__.py
- context_manager.py
- frame.py
- frame_info.py
- frame_ops.py
- middleware.py
- processors.py
- profiler.py
- py.typed
- session.py
- stack_sampler.py
- typing.py
- util.py
- __init__.py
- test_context.py
- test_custom_timer.py
- test_floatclock.py
- test_frame_info.py
- test_setstatprofile.py
- test_threaded.py
- test_timing_thread.py
- util.py
- __init__.py
- conftest.py
- fake_time_util.py
- test_cmdline.py
- test_cmdline_main.py
- test_context_manager.py
- test_django_middleware.py
- test_ipython_magic.py
- test_overflow.py
- test_processors.py
- test_profiler.py
- test_profiler_async.py
- test_pstats_renderer.py
- test_renderers.py
- test_stack_sampler.py
- test_threading.py
- util.py
- .editorconfig
- .gitignore
- .pre-commit-config.yaml
- .readthedocs.yaml
- LICENSE
- MAINTAINERS.md
- MANIFEST.in
- noxfile.py
- pyproject.toml
- README.md
- requirements-dev.txt
- setup.cfg
- setup.py
# Installation Guide
git clone https://github.com/joerick/pyinstrument
Downloads the entire project code from GitHub to your computer.
cd pyinstrument
Moves into the project folder you just downloaded.
2. Official Install Script
Easy Recommended- Python 3 Python is required to use pip.
pip install pyinstrument
Installs the package published on PyPI directly β no need to clone the source.
pip install --upgrade pip
Installs the package published on PyPI directly β no need to clone the source.
Pulled directly from this repo's README.
3. Node.js
Easynpm ci
Type this command into your terminal and run it.
npm run serve
Type this command into your terminal and run it.
Pulled directly from this repo's README.
4. Python
Easypip install pyinstrument
Installs the package published on PyPI directly β no need to clone the source.
`python -m pyinstrument`. Thanks @asmeurer!
Runs the Python script (or module).
pip install --upgrade pip
Installs the package published on PyPI directly β no need to clone the source.
pip install -r requirements-dev.txt
Installs the Python libraries listed in requirements.txt (or similar).
Pulled directly from this repo's README.
