You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -681,6 +682,42 @@ const atlaspack = new Atlaspack({
681
682
});
682
683
```
683
684
685
+
### `nativeProfiler`
686
+
687
+
**Type**: `'instruments' | 'samply' | undefined`
688
+
689
+
**Default**: `undefined`
690
+
691
+
**Description**: Enable native build profiling. When enabled, Atlaspack will display a banner with the PID and command to run the profiler. The profiler type can be:
692
+
693
+
-`'instruments'` - Use Instruments (macOS only, uses `xcrun xctrace`)
694
+
-`'samply'` - Use samply profiler (cross-platform)
695
+
696
+
If `--profile-native` is provided on the CLI without a profiler name, defaults to `'samply'`.
697
+
698
+
**Examples**:
699
+
700
+
```javascript
701
+
// Enable native profiling with instruments (macOS)
0 commit comments