(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 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
Hashes for wfork_streamlit_profiler-0.2.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dae64f6656c83ab6d719b9109ac40fe7d29bd04ad07108d3ae669b94e359353 |
|
MD5 | b60741e4ba148e21d15384a492a8f2c2 |
|
BLAKE2b-256 | 29aa013c792e32927a5b2f9b600609efa6fd68f58bd5bf45dc4705afd0c8570e |
Hashes for wfork_streamlit_profiler-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c46c53fb2ef757dfa324af7cbabdaf9a0a7542b4f8db4a67ecc3ad9ad908a532 |
|
MD5 | 673a779aa913545148c8e93c60a793d1 |
|
BLAKE2b-256 | 5c166255d2871929b6a19cd6f3cd2dfa47c164bb0c35648171bdd7a0689d17d4 |