#profiler #legion #front-end #legion-prof

bin+lib legion_prof_viewer

Profiler UI frontend component for Legion Prof

5 releases

new 0.2.3 Jul 16, 2024
0.2.2 Jul 9, 2024
0.2.1 Mar 20, 2024
0.2.0 Mar 20, 2024
0.1.0 Mar 14, 2024

#77 in Profiling

Download history 467/week @ 2024-03-31 547/week @ 2024-04-07 338/week @ 2024-04-14 314/week @ 2024-04-21 445/week @ 2024-04-28 470/week @ 2024-05-05 434/week @ 2024-05-12 384/week @ 2024-05-19 378/week @ 2024-05-26 574/week @ 2024-06-02 288/week @ 2024-06-09 346/week @ 2024-06-16 468/week @ 2024-06-23 292/week @ 2024-06-30 429/week @ 2024-07-07 501/week @ 2024-07-14

1,739 downloads per month
Used in legion_prof

Apache-2.0

745KB
5K SLoC

Legion Prof Viewer

This repository contains the Legion Prof frontend in Rust. The frontend here is intended to be used with Legion Prof and is not (typically) used standalone. Most users want the integrated version (i.e., that can parse Legion Prof logs and generate a visualization). To use the integrated version of Legion Prof, clone the Legion repository and run:

git clone https://github.com/StanfordLegion/legion.git
cargo install --locked --all-features --path legion/tools/legion_prof_rs

To start a native viewer right away, run:

legion_prof --view prof_*.gz

To start a server (and attach a viewer to it), run:

legion_prof --serve prof_*.gz
legion_prof --attach http://127.0.0.1:8080/

If you really want to run the frontend by itself, continue to the instructions below.

Quickstart

Native

Run:

cargo run --release

Ubuntu dependencies:

sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev

Fedora Rawhide dependencies:

dnf install clang clang-devel clang-tools-extra speech-dispatcher-devel libxkbcommon-devel pkg-config openssl-devel libxcb-devel fontconfig-devel

Web Locally

Install dependencies:

cargo install --locked trunk

Then run:

trunk serve

Go to http://127.0.0.1:8080/#dev in your browser. (The #dev skips client-side caching, so that you don't need to clear your browser cache as you develop the app.)

Web Deploy

Install trunk as above. Then run:

trunk build --release

This will generate a static site under dist that you can upload. Note that trunk by default assumes the site will live in the root of the domain (e.g., https://example.com/). If that is not true, add --public-url ... to the trunk command where ... is the path the build is hosted under (e.g., https://example.com/.../).

Web Auto-Deploy

This repository is configured via GitHub Actions to deploy automatically on each push to the master branch. You can test it at https://legion.stanford.edu/prof-viewer/?url=https://... where https://... is the URL of the profile to load.

Dependencies

~15–58MB
~1M SLoC