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.8rc4.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.8rc4-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for wfork_streamlit_profiler-0.2.8rc4.tar.gz
Algorithm Hash digest
SHA256 8361a2177aa9cb5a1e2465a6d149d489bcb5bad62e8149f25522c481d3837bd1
MD5 15d6391bed5cb9c00fab07519ea47e02
BLAKE2b-256 d729e8b99478945bde4e736204c37d36708bb5df33c0b4da38475d9ab15df2b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wfork_streamlit_profiler-0.2.8rc4-py3-none-any.whl
Algorithm Hash digest
SHA256 99b9b5db90b3e461b1369b9e8c4c6a90b2c94c0322af3a4465beb18e507578f2
MD5 eae0d6e5cd504631e7b69f2b212c7175
BLAKE2b-256 86c6ec03e99e068d2851395b761706d2832c39365e6e2b0ba9a9890b48adcd54

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