shumai-profiler

0.1.10 • Public • Published

shumai-profiler

An interactive profiler for shumai. Supports local and distributed workloads.

Preview

Use cases

  • Insights into hardware utilization
  • Understand where time is being spent
  • Contrast hosts & devices
  • Insights into the types of operations and their impact

Usage

Node.js required. Support for Bun coming.

Run the profiler:

npx shumai-profiler --host
# OR npm i shumai-profiler -g && shumaip --host

Update your shumai app to point to profiler:

import * as sm from '@shumai/shumai';

sm.stats.enabled = true
sm.stats.logger = new sm.StatsLoggerHttp({ url: 'http://localhost:3000/logger' })

Run your application.

You're all set, open your browser to http://localhost:3000/ and give the profiler 10 seconds or so to fill in the graphs. You can expect to see a ~10 second lag between your application and the graphs.

Readme

Keywords

none

Package Sidebar

Install

npm i shumai-profiler

Weekly Downloads

1

Version

0.1.10

License

MIT

Unpacked Size

23.5 MB

Total Files

6

Last publish

Collaborators

  • asilvas