@swmansion/argent 0.33.1-next.23 → 0.33.1-next.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
package/dist/cli-cmds.mjs CHANGED
@@ -10701,6 +10701,7 @@ var FAILURE_CODES = {
10701
10701
  NATIVE_PROFILER_SESSION_TORN_DOWN: "NATIVE_PROFILER_SESSION_TORN_DOWN",
10702
10702
  NATIVE_PROFILER_APP_PROCESS_NOT_FOUND: "NATIVE_PROFILER_APP_PROCESS_NOT_FOUND",
10703
10703
  NATIVE_PROFILER_NO_EXPORTED_TRACE: "NATIVE_PROFILER_NO_EXPORTED_TRACE",
10704
+ NATIVE_PROFILER_APP_NOT_DEBUGGABLE: "NATIVE_PROFILER_APP_NOT_DEBUGGABLE",
10704
10705
  // Android perfetto start failures, mirroring the iOS xctrace set above.
10705
10706
  NATIVE_PROFILER_PERFETTO_PROCESS_ERROR: "NATIVE_PROFILER_PERFETTO_PROCESS_ERROR",
10706
10707
  NATIVE_PROFILER_PERFETTO_READY_TIMEOUT: "NATIVE_PROFILER_PERFETTO_READY_TIMEOUT",
@@ -36069,7 +36070,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
36069
36070
  var SESSION_ID2 = randomUUID5();
36070
36071
  function readCliVersion() {
36071
36072
  if (true) {
36072
- return "0.33.1-next.23";
36073
+ return "0.33.1-next.25";
36073
36074
  }
36074
36075
  return "0.0.0";
36075
36076
  }
package/dist/client.js CHANGED
@@ -9274,6 +9274,7 @@ var FAILURE_CODES = {
9274
9274
  NATIVE_PROFILER_SESSION_TORN_DOWN: "NATIVE_PROFILER_SESSION_TORN_DOWN",
9275
9275
  NATIVE_PROFILER_APP_PROCESS_NOT_FOUND: "NATIVE_PROFILER_APP_PROCESS_NOT_FOUND",
9276
9276
  NATIVE_PROFILER_NO_EXPORTED_TRACE: "NATIVE_PROFILER_NO_EXPORTED_TRACE",
9277
+ NATIVE_PROFILER_APP_NOT_DEBUGGABLE: "NATIVE_PROFILER_APP_NOT_DEBUGGABLE",
9277
9278
  // Android perfetto start failures, mirroring the iOS xctrace set above.
9278
9279
  NATIVE_PROFILER_PERFETTO_PROCESS_ERROR: "NATIVE_PROFILER_PERFETTO_PROCESS_ERROR",
9279
9280
  NATIVE_PROFILER_PERFETTO_READY_TIMEOUT: "NATIVE_PROFILER_PERFETTO_READY_TIMEOUT",
@@ -16033,6 +16033,7 @@ var FAILURE_CODES = {
16033
16033
  NATIVE_PROFILER_SESSION_TORN_DOWN: "NATIVE_PROFILER_SESSION_TORN_DOWN",
16034
16034
  NATIVE_PROFILER_APP_PROCESS_NOT_FOUND: "NATIVE_PROFILER_APP_PROCESS_NOT_FOUND",
16035
16035
  NATIVE_PROFILER_NO_EXPORTED_TRACE: "NATIVE_PROFILER_NO_EXPORTED_TRACE",
16036
+ NATIVE_PROFILER_APP_NOT_DEBUGGABLE: "NATIVE_PROFILER_APP_NOT_DEBUGGABLE",
16036
16037
  // Android perfetto start failures, mirroring the iOS xctrace set above.
16037
16038
  NATIVE_PROFILER_PERFETTO_PROCESS_ERROR: "NATIVE_PROFILER_PERFETTO_PROCESS_ERROR",
16038
16039
  NATIVE_PROFILER_PERFETTO_READY_TIMEOUT: "NATIVE_PROFILER_PERFETTO_READY_TIMEOUT",
@@ -16986,7 +16987,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
16986
16987
  var SESSION_ID = randomUUID4();
16987
16988
  function readCliVersion() {
16988
16989
  if (true) {
16989
- return "0.33.1-next.23";
16990
+ return "0.33.1-next.25";
16990
16991
  }
16991
16992
  return "0.0.0";
16992
16993
  }
@@ -25984,6 +25984,7 @@ var FAILURE_CODES = {
25984
25984
  NATIVE_PROFILER_SESSION_TORN_DOWN: "NATIVE_PROFILER_SESSION_TORN_DOWN",
25985
25985
  NATIVE_PROFILER_APP_PROCESS_NOT_FOUND: "NATIVE_PROFILER_APP_PROCESS_NOT_FOUND",
25986
25986
  NATIVE_PROFILER_NO_EXPORTED_TRACE: "NATIVE_PROFILER_NO_EXPORTED_TRACE",
25987
+ NATIVE_PROFILER_APP_NOT_DEBUGGABLE: "NATIVE_PROFILER_APP_NOT_DEBUGGABLE",
25987
25988
  // Android perfetto start failures, mirroring the iOS xctrace set above.
25988
25989
  NATIVE_PROFILER_PERFETTO_PROCESS_ERROR: "NATIVE_PROFILER_PERFETTO_PROCESS_ERROR",
25989
25990
  NATIVE_PROFILER_PERFETTO_READY_TIMEOUT: "NATIVE_PROFILER_PERFETTO_READY_TIMEOUT",
@@ -538,21 +538,21 @@ export interface ArgentToolArgs {
538
538
  stop?: boolean;
539
539
  };
540
540
  "native-profiler-analyze": {
541
- /** Target device id from `list-devices` (iOS UDID or Android serial). */
541
+ /** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
542
542
  device_id: string;
543
543
  };
544
544
  "native-profiler-start": {
545
- /** Target device id from `list-devices` (iOS UDID or Android serial). */
545
+ /** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
546
546
  device_id: string;
547
- /** iOS: the CFBundleExecutable or display name of the app to profile. Android: the app's package name. If omitted, auto-detects the foreground app; set it only if auto-detection picks the wrong app. */
547
+ /** iOS: the CFBundleExecutable or display name of the app to profile. Android: the app's package name. If omitted, auto-detects the foreground app; set it only if auto-detection picks the wrong app. Do not set it for a Mac app: the tool refuses it, because the device id names the app. */
548
548
  app_process?: string;
549
- /** iOS only. Path to an Instruments .tracetemplate file (defaults to the bundled Argent template). */
549
+ /** iOS and Mac apps only. Path to an Instruments .tracetemplate file, or the name of a built-in template such as "Time Profiler" (defaults to the bundled Argent template). */
550
550
  template_path?: string;
551
- /** iOS only. When true, cold-launches the app under the profiler with Malloc Stack Logging enabled so memory leaks carry an allocation backtrace (responsible frame + library). Without it, leaks carry no backtrace (Instruments reports '<Call stack limit reached>'). Trade-offs: this RESTARTS the app (current state is lost), adds memory/CPU overhead, and makes the app noticeably slow to launch, so leave it off for pure CPU/hang profiling. Rejected up front under the all-processes capture (used where Xcode's `--device` recording is broken, or forced with ARGENT_IOS_CAPTURE=all-processes), which cannot cold-launch and records no leaks. */
551
+ /** iOS and Mac apps only. Enable allocation stacks from app launch. Restarts the app, clears its current state, and adds CPU and memory overhead. Leave it off for CPU and hang timing. On iOS, attach recordings typically lack allocation stacks. The all-processes capture (including ARGENT_IOS_CAPTURE=all-processes) rejects this option and records no leaks. On a Mac app, argent restarts the app with MallocStackLogging=1 and then attaches, and logging stays active until restart-app. The bundled template can capture stacks for allocations during recording, so enable this for older allocations. */
552
552
  malloc_stack_logging?: boolean;
553
553
  };
554
554
  "native-profiler-stop": {
555
- /** Target device id from `list-devices` (iOS UDID or Android serial). */
555
+ /** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
556
556
  device_id: string;
557
557
  };
558
558
  "native-user-interactable-view-at-point": {
@@ -618,13 +618,13 @@ export interface ArgentToolArgs {
618
618
  "profiler-combined-report": {
619
619
  /** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
620
620
  port?: number;
621
- /** iOS Simulator/device UDID or Android serial */
621
+ /** Device ID from list-devices used for the native profile (iOS simulator UDID, Android serial, or Mac app ID). */
622
622
  device_id: string;
623
623
  };
624
624
  "profiler-commit-query": {
625
625
  /** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
626
626
  port?: number;
627
- /** Device logicalDeviceId from debugger-connect (iOS simulator UDID or Android logicalDeviceId). */
627
+ /** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
628
628
  device_id: string;
629
629
  /** Query mode; see Modes in the tool description. */
630
630
  mode: "by_component" | "by_time_range" | "by_index" | "cascade_tree" | "render_counts";
@@ -645,7 +645,7 @@ export interface ArgentToolArgs {
645
645
  "profiler-cpu-query": {
646
646
  /** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
647
647
  port?: number;
648
- /** Device logicalDeviceId from debugger-connect (iOS simulator UDID or Android logicalDeviceId). */
648
+ /** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
649
649
  device_id: string;
650
650
  /** Query mode; see Modes in the tool description. */
651
651
  mode: "top_functions" | "time_window" | "call_tree" | "component_cpu";
@@ -680,7 +680,7 @@ export interface ArgentToolArgs {
680
680
  app_process?: string;
681
681
  };
682
682
  "profiler-stack-query": {
683
- /** iOS Simulator UDID or Android serial. */
683
+ /** Target device id from `list-devices` (iOS simulator UDID, Mac app id or Android serial). */
684
684
  device_id: string;
685
685
  /** Query mode; see Modes in the tool description. */
686
686
  mode: "hang_stacks" | "function_callers" | "thread_breakdown" | "leak_stacks";
@@ -731,12 +731,12 @@ export interface ArgentToolArgs {
731
731
  "react-profiler-analyze": {
732
732
  /** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
733
733
  port?: number;
734
- /** Device logicalDeviceId from debugger-connect (iOS simulator UDID or Android logicalDeviceId). */
734
+ /** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
735
735
  device_id: string;
736
736
  /** Absolute path to the RN project root for session context detection */
737
737
  project_root: string;
738
- /** Target platform */
739
- platform?: "ios" | "android";
738
+ /** Platform for source lookup when the recording does not identify one. */
739
+ platform?: "ios" | "android" | "macos";
740
740
  /** React Native version (e.g. "0.73.4") */
741
741
  rn_version?: string;
742
742
  /** User actions to annotate the report's commits with: each commit shows the action that preceded it. */
@@ -756,7 +756,7 @@ export interface ArgentToolArgs {
756
756
  "react-profiler-cpu-summary": {
757
757
  /** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
758
758
  port?: number;
759
- /** Device logicalDeviceId from debugger-connect (iOS simulator UDID or Android logicalDeviceId). */
759
+ /** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
760
760
  device_id: string;
761
761
  /** Number of top hotspot functions to return */
762
762
  top_n?: number;
@@ -766,7 +766,7 @@ export interface ArgentToolArgs {
766
766
  "react-profiler-fiber-tree": {
767
767
  /** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
768
768
  port?: number;
769
- /** Device logicalDeviceId from debugger-connect (iOS simulator UDID or Android logicalDeviceId). */
769
+ /** Device ID of the app to inspect. For a Mac app, use its ID from list-devices. During a recording, use the ID passed to react-profiler-start. */
770
770
  device_id: string;
771
771
  /** Maximum tree depth to traverse */
772
772
  max_depth?: number;
@@ -776,7 +776,7 @@ export interface ArgentToolArgs {
776
776
  "react-profiler-renders": {
777
777
  /** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
778
778
  port?: number;
779
- /** Device logicalDeviceId from debugger-connect (iOS simulator UDID or Android logicalDeviceId). */
779
+ /** Device ID of the app to inspect. For a Mac app, use its ID from list-devices. During a recording, use the ID passed to react-profiler-start. */
780
780
  device_id: string;
781
781
  /** Number of components to return */
782
782
  top_n?: number;
@@ -784,7 +784,7 @@ export interface ArgentToolArgs {
784
784
  "react-profiler-start": {
785
785
  /** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
786
786
  port?: number;
787
- /** Device id from list-devices: the SAME id you passed to debugger-connect (iOS simulator UDID or Android serial). */
787
+ /** Device ID from list-devices, including a Mac app ID. For iOS or Android on a shared Metro, use the target's logicalDeviceId if asked to disambiguate. */
788
788
  device_id: string;
789
789
  /** CPU sampling interval in microseconds */
790
790
  sample_interval_us?: number;
@@ -794,13 +794,13 @@ export interface ArgentToolArgs {
794
794
  "react-profiler-status": {
795
795
  /** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
796
796
  port?: number;
797
- /** Device logicalDeviceId from debugger-connect (iOS simulator UDID or Android logicalDeviceId). */
797
+ /** Device ID of the app to inspect. For a Mac app, use its ID from list-devices. During a recording, use the ID passed to react-profiler-start. */
798
798
  device_id: string;
799
799
  };
800
800
  "react-profiler-stop": {
801
801
  /** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
802
802
  port?: number;
803
- /** Device id from list-devices: the SAME id you passed to debugger-connect (iOS simulator UDID or Android serial). */
803
+ /** Device ID passed to react-profiler-start. For a Mac app, use its ID from list-devices. */
804
804
  device_id: string;
805
805
  };
806
806
  "reinstall-app": {