11cb0ef41Sopenharmony_ci# Please notify @nodejs/v8-inspector and @nodejs/trace-events before modifying this file 21cb0ef41Sopenharmony_civersion 31cb0ef41Sopenharmony_ci major 1 41cb0ef41Sopenharmony_ci minor 0 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ciexperimental domain NodeTracing 71cb0ef41Sopenharmony_ci type TraceConfig extends object 81cb0ef41Sopenharmony_ci properties 91cb0ef41Sopenharmony_ci # Controls how the trace buffer stores data. 101cb0ef41Sopenharmony_ci optional enum recordMode 111cb0ef41Sopenharmony_ci recordUntilFull 121cb0ef41Sopenharmony_ci recordContinuously 131cb0ef41Sopenharmony_ci recordAsMuchAsPossible 141cb0ef41Sopenharmony_ci # Included category filters. 151cb0ef41Sopenharmony_ci array of string includedCategories 161cb0ef41Sopenharmony_ci 171cb0ef41Sopenharmony_ci # Gets supported tracing categories. 181cb0ef41Sopenharmony_ci command getCategories 191cb0ef41Sopenharmony_ci returns 201cb0ef41Sopenharmony_ci # A list of supported tracing categories. 211cb0ef41Sopenharmony_ci array of string categories 221cb0ef41Sopenharmony_ci 231cb0ef41Sopenharmony_ci # Start trace events collection. 241cb0ef41Sopenharmony_ci command start 251cb0ef41Sopenharmony_ci parameters 261cb0ef41Sopenharmony_ci TraceConfig traceConfig 271cb0ef41Sopenharmony_ci 281cb0ef41Sopenharmony_ci # Stop trace events collection. Remaining collected events will be sent as a sequence of 291cb0ef41Sopenharmony_ci # dataCollected events followed by tracingComplete event. 301cb0ef41Sopenharmony_ci command stop 311cb0ef41Sopenharmony_ci 321cb0ef41Sopenharmony_ci # Contains an bucket of collected trace events. 331cb0ef41Sopenharmony_ci event dataCollected 341cb0ef41Sopenharmony_ci parameters 351cb0ef41Sopenharmony_ci array of object value 361cb0ef41Sopenharmony_ci 371cb0ef41Sopenharmony_ci # Signals that tracing is stopped and there is no trace buffers pending flush, all data were 381cb0ef41Sopenharmony_ci # delivered via dataCollected events. 391cb0ef41Sopenharmony_ci event tracingComplete 401cb0ef41Sopenharmony_ci 411cb0ef41Sopenharmony_ci# Support for sending messages to Node worker Inspector instances. 421cb0ef41Sopenharmony_ciexperimental domain NodeWorker 431cb0ef41Sopenharmony_ci 441cb0ef41Sopenharmony_ci type WorkerID extends string 451cb0ef41Sopenharmony_ci 461cb0ef41Sopenharmony_ci # Unique identifier of attached debugging session. 471cb0ef41Sopenharmony_ci type SessionID extends string 481cb0ef41Sopenharmony_ci 491cb0ef41Sopenharmony_ci type WorkerInfo extends object 501cb0ef41Sopenharmony_ci properties 511cb0ef41Sopenharmony_ci WorkerID workerId 521cb0ef41Sopenharmony_ci string type 531cb0ef41Sopenharmony_ci string title 541cb0ef41Sopenharmony_ci string url 551cb0ef41Sopenharmony_ci 561cb0ef41Sopenharmony_ci # Sends protocol message over session with given id. 571cb0ef41Sopenharmony_ci command sendMessageToWorker 581cb0ef41Sopenharmony_ci parameters 591cb0ef41Sopenharmony_ci string message 601cb0ef41Sopenharmony_ci # Identifier of the session. 611cb0ef41Sopenharmony_ci SessionID sessionId 621cb0ef41Sopenharmony_ci 631cb0ef41Sopenharmony_ci # Instructs the inspector to attach to running workers. Will also attach to new workers 641cb0ef41Sopenharmony_ci # as they start 651cb0ef41Sopenharmony_ci command enable 661cb0ef41Sopenharmony_ci parameters 671cb0ef41Sopenharmony_ci # Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger` 681cb0ef41Sopenharmony_ci # message to run them. 691cb0ef41Sopenharmony_ci boolean waitForDebuggerOnStart 701cb0ef41Sopenharmony_ci 711cb0ef41Sopenharmony_ci # Detaches from all running workers and disables attaching to new workers as they are started. 721cb0ef41Sopenharmony_ci command disable 731cb0ef41Sopenharmony_ci 741cb0ef41Sopenharmony_ci # Detached from the worker with given sessionId. 751cb0ef41Sopenharmony_ci command detach 761cb0ef41Sopenharmony_ci parameters 771cb0ef41Sopenharmony_ci SessionID sessionId 781cb0ef41Sopenharmony_ci 791cb0ef41Sopenharmony_ci # Issued when attached to a worker. 801cb0ef41Sopenharmony_ci event attachedToWorker 811cb0ef41Sopenharmony_ci parameters 821cb0ef41Sopenharmony_ci # Identifier assigned to the session used to send/receive messages. 831cb0ef41Sopenharmony_ci SessionID sessionId 841cb0ef41Sopenharmony_ci WorkerInfo workerInfo 851cb0ef41Sopenharmony_ci boolean waitingForDebugger 861cb0ef41Sopenharmony_ci 871cb0ef41Sopenharmony_ci # Issued when detached from the worker. 881cb0ef41Sopenharmony_ci event detachedFromWorker 891cb0ef41Sopenharmony_ci parameters 901cb0ef41Sopenharmony_ci # Detached session identifier. 911cb0ef41Sopenharmony_ci SessionID sessionId 921cb0ef41Sopenharmony_ci 931cb0ef41Sopenharmony_ci # Notifies about a new protocol message received from the session 941cb0ef41Sopenharmony_ci # (session ID is provided in attachedToWorker notification). 951cb0ef41Sopenharmony_ci event receivedMessageFromWorker 961cb0ef41Sopenharmony_ci parameters 971cb0ef41Sopenharmony_ci # Identifier of a session which sends a message. 981cb0ef41Sopenharmony_ci SessionID sessionId 991cb0ef41Sopenharmony_ci string message 1001cb0ef41Sopenharmony_ci 1011cb0ef41Sopenharmony_ci# Support for inspecting node process state. 1021cb0ef41Sopenharmony_ciexperimental domain NodeRuntime 1031cb0ef41Sopenharmony_ci # Enable the `NodeRuntime.waitingForDisconnect`. 1041cb0ef41Sopenharmony_ci command notifyWhenWaitingForDisconnect 1051cb0ef41Sopenharmony_ci parameters 1061cb0ef41Sopenharmony_ci boolean enabled 1071cb0ef41Sopenharmony_ci 1081cb0ef41Sopenharmony_ci # This event is fired instead of `Runtime.executionContextDestroyed` when 1091cb0ef41Sopenharmony_ci # enabled. 1101cb0ef41Sopenharmony_ci # It is fired when the Node process finished all code execution and is 1111cb0ef41Sopenharmony_ci # waiting for all frontends to disconnect. 1121cb0ef41Sopenharmony_ci event waitingForDisconnect 113