Skip to content

Add neuron profiling support to Scalene GUI and profiler#935

Merged
emeryberger merged 8 commits into
plasma-umass:masterfrom
nehamur:feature/NeuronPyProfiler
Aug 18, 2025
Merged

Add neuron profiling support to Scalene GUI and profiler#935
emeryberger merged 8 commits into
plasma-umass:masterfrom
nehamur:feature/NeuronPyProfiler

Conversation

@nehamur
Copy link
Copy Markdown
Contributor

@nehamur nehamur commented Aug 18, 2025

  • Enhanced GUI elements for neuron profiling visualization
  • Updated profiler to support neuron-specific metrics
  • Modified bundle for neuron profiling features
  • Changed handling on Neuron-Monitor to avoid trainium device becoming overloaded

Comment thread scalene/scalene-gui/gui-elements.js.backup Outdated
Comment thread scalene/scalene-gui/scalene-gui-bundle.js.LICENSE.txt Outdated
Comment thread scalene/scalene-gui/scalene-gui-bundle.js.map Outdated
Comment thread scalene/scalene-gui/scalene-gui.js
Comment thread scalene/scalene-gui/scalene-gui.js.backup Outdated
- Restored stringLines function for proper multi-line comment formatting
- Removed backup files and generated files from repo
- Added node_modules to .gitignore
- Enhanced GUI elements for neuron profiling visualization
- Updated profiler to support neuron-specific metrics (NRT, NC)
- Added neuron monitoring capabilities
@nehamur nehamur force-pushed the feature/NeuronPyProfiler branch from 701b877 to 8e8f78f Compare August 18, 2025 18:46
Neha Muramalla added 6 commits August 18, 2025 13:21
…h profileLine

- stringLines function now called to compute docstring lines for each file
- makeProfileLine updated to accept is_docstring parameter
- Docstring information properly passed through for multi-line comment formatting
- Addresses maintainer feedback about function being inoperable
- Rebuilt bundle includes stringLines function integration
- GUI now properly formats multi-line docstrings and comments
- Bundle size: 37.2 KiB (includes neuron profiling + stringLines fixes)
…mpatibility

- Changed lxml==5.1.0 to lxml>=5.1.0 to allow pip to install newer versions
- Fixes build failures on Python 3.13 where lxml 5.1.0 lacks pre-built wheels
- Avoids need to build lxml from source which requires system dependencies
Comment thread scalene/scalene-gui/scalene-gui.js Outdated
Comment thread scalene/scalene-gui/scalene-gui.js Outdated
- Add hasNeuronData detection to only show neuron columns when data exists
- Fixed makeTableHeader() and makeProfileLine() to accept hasNeuronData parameter
- Neuron columns (NRT %, NC time) appear automatically when profile contains neuron data
- Maintains stringLines functionality for docstring CSS styling
- Updated webpack bundle with conditional neuron column logic
- Prevents JavaScript errors from undefined neuron fields
- Smoketest passes successfully
@emeryberger emeryberger merged commit a910e71 into plasma-umass:master Aug 18, 2025
14 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants