Introduction to Oaklean
Oaklean helps you measure and understand energy and runtime behavior in Node.js and TypeScript projects.
With Oaklean, you can:
- profile source-level behavior with energy and performance signals,
- configure and standardize measurements with a
.oakleanfile, - inspect reports directly in the Oaklean VS Code extension.
Get Started in 4 Steps
- Install Oaklean packages for your use case:
npm install @oaklean/profiler
or for Jest-based test environments:
npm install @oaklean/profiler-jest-environment
- Create a
.oakleanconfiguration:
npm add --save-dev @oaklean/cli
npx oak init
-
Run your workload or test suite with Oaklean enabled to generate measurement output.
-
Open and analyze generated reports in the Oaklean VS Code Extension docs.