(fork of) Runtime profiler for Streamlit, powered by pyinstrument
Project description
wfork-streamlit-profiler 🏄🏼
Runtime profiler for Streamlit, powered by pyinstrument.
wfork-streamlit-profiler is a fork of streamlit-profiler 0.2.4. If there are any newer versions of the original streamlit-profiler, you should probably use those instead. See the original project's github for more: https://github.com/jrieke/streamlit-profiler
streamlit-profiler is a Streamlit component that helps you find out which parts of your app are slow. It profiles the code via pyinstrument and shows the results right within your Streamlit app.
Alpha version, use with care.
⏱️ Live demo ⏱️
Installation
pip install wfork-streamlit-profiler
Usage
import streamlit as st
from wfork_streamlit_profiler import Profiler
with Profiler():
st.title("My app")
# ... other code
# Or:
# p = Profiler()
# p.start()
# ...
# p.stop()
Then start your app as usual: streamlit run my_app.py
The Profiler class is an extension of pyinstrument.Profiler, so you can use
all of its functions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wfork_streamlit_profiler-0.2.8rc4.tar.gz.
File metadata
- Download URL: wfork_streamlit_profiler-0.2.8rc4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8361a2177aa9cb5a1e2465a6d149d489bcb5bad62e8149f25522c481d3837bd1
|
|
| MD5 |
15d6391bed5cb9c00fab07519ea47e02
|
|
| BLAKE2b-256 |
d729e8b99478945bde4e736204c37d36708bb5df33c0b4da38475d9ab15df2b9
|
File details
Details for the file wfork_streamlit_profiler-0.2.8rc4-py3-none-any.whl.
File metadata
- Download URL: wfork_streamlit_profiler-0.2.8rc4-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99b9b5db90b3e461b1369b9e8c4c6a90b2c94c0322af3a4465beb18e507578f2
|
|
| MD5 |
eae0d6e5cd504631e7b69f2b212c7175
|
|
| BLAKE2b-256 |
86c6ec03e99e068d2851395b761706d2832c39365e6e2b0ba9a9890b48adcd54
|