Skip to main content

(fork of) Runtime profiler for Streamlit, powered by pyinstrument

Project description

wfork-streamlit-profiler  🏄🏼

PyPi

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wfork_streamlit_profiler-0.2.8rc5.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wfork_streamlit_profiler-0.2.8rc5-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file wfork_streamlit_profiler-0.2.8rc5.tar.gz.

File metadata

File hashes

Hashes for wfork_streamlit_profiler-0.2.8rc5.tar.gz
Algorithm Hash digest
SHA256 c56854ce0acd4f49875af458d2b519cafe636011365adf03ec435dd15d40f097
MD5 192087f7274d1dffa22fede6f3f33971
BLAKE2b-256 25873d15005e3a2810c0cabebe77080f34c00f3e229bac68e1c7db727681d451

See more details on using hashes here.

File details

Details for the file wfork_streamlit_profiler-0.2.8rc5-py3-none-any.whl.

File metadata

File hashes

Hashes for wfork_streamlit_profiler-0.2.8rc5-py3-none-any.whl
Algorithm Hash digest
SHA256 84d8b51c634423907ad1e3b5715fbb8f7a85ea5eb4eef2482a256e73bb5db728
MD5 db3e7716e5328a9eb3c3416f5081a71c
BLAKE2b-256 30e2dadd8f5af6dd69c54e71ae8dfe69341e2326e04189924bfc1e807c44f1c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page