@@ -11,12 +11,7 @@ import { isPromise } from '../common/utils/async';
1111import { StopWatch } from '../common/utils/stopWatch' ;
1212import { ConsoleType , TriggerType } from '../debugger/types' ;
1313import { EnvironmentType , PythonEnvironment } from '../pythonEnvironments/info' ;
14- import {
15- TensorBoardEntrypoint ,
16- TensorBoardEntrypointTrigger ,
17- TensorBoardPromptSelection ,
18- TensorBoardSessionStartResult ,
19- } from '../tensorBoard/constants' ;
14+ import { TensorBoardPromptSelection } from '../tensorBoard/constants' ;
2015import { EventName } from './constants' ;
2116import type { TestTool } from './types' ;
2217
@@ -2577,101 +2572,6 @@ export interface IEventNamePropertyMapping {
25772572 } ;
25782573
25792574 // TensorBoard integration events
2580- /**
2581- * Telemetry event sent after the user has clicked on an option in the prompt we display
2582- * asking them if they want to launch an integrated TensorBoard session.
2583- * `selection` is one of 'yes', 'no', or 'do not ask again'.
2584- */
2585- /* __GDPR__
2586- "tensorboard.launch_prompt_selection" : { "owner": "donjayamanne" }
2587- */
2588-
2589- [ EventName . TENSORBOARD_LAUNCH_PROMPT_SELECTION ] : {
2590- selection : TensorBoardPromptSelection ;
2591- } ;
2592- /**
2593- * Telemetry event sent after the python.launchTensorBoard command has been executed.
2594- * The `entrypoint` property indicates whether the command was executed directly by the
2595- * user from the command palette or from a codelens or the user clicking 'yes'
2596- * on the launch prompt we display.
2597- * The `trigger` property indicates whether the entrypoint was triggered by the user
2598- * importing tensorboard, using tensorboard in a notebook, detected tfevent files in
2599- * the workspace. For the palette entrypoint, the trigger is also 'palette'.
2600- */
2601- /* __GDPR__
2602- "tensorboard.session_launch" : {
2603- "entrypoint" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "donjayamanne" },
2604- "trigger": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "donjayamanne" }
2605- }
2606- */
2607- [ EventName . TENSORBOARD_SESSION_LAUNCH ] : {
2608- entrypoint : TensorBoardEntrypoint ;
2609- trigger : TensorBoardEntrypointTrigger ;
2610- } ;
2611- /**
2612- * Telemetry event sent after we have attempted to create a tensorboard program instance
2613- * by spawning a daemon to run the tensorboard_launcher.py script. The event is sent with
2614- * `duration` which should never exceed 60_000ms. Depending on the value of `result`, `duration` means:
2615- * 1. 'success' --> the total amount of time taken for the execObservable daemon to report successful TB session launch
2616- * 2. 'canceled' --> the total amount of time that the user waited for the daemon to start before canceling launch
2617- * 3. 'error' --> 60_000ms, i.e. we timed out waiting for the daemon to launch
2618- * In the first two cases, `duration` should not be more than 60_000ms.
2619- */
2620- /* __GDPR__
2621- "tensorboard.session_daemon_startup_duration" : {
2622- "duration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "donjayamanne" },
2623- "result" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "donjayamanne" }
2624- }
2625- */
2626- [ EventName . TENSORBOARD_SESSION_DAEMON_STARTUP_DURATION ] : {
2627- result : TensorBoardSessionStartResult ;
2628- } ;
2629- /**
2630- * Telemetry event sent after the webview framing the TensorBoard website has been successfully shown.
2631- * This event is sent with `duration` which represents the total time to create a TensorBoardSession.
2632- * Note that this event is only sent if an integrated TensorBoard session is successfully created in full.
2633- * This includes checking whether the tensorboard package is installed and installing it if it's not already
2634- * installed, requesting the user to select a log directory, starting the tensorboard
2635- * program instance in a daemon, and showing the TensorBoard UI in a webpanel, in that order.
2636- */
2637- /* __GDPR__
2638- "tensorboard.session_e2e_startup_duration" : {
2639- "duration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "donjayamanne" }
2640- }
2641- */
2642- [ EventName . TENSORBOARD_SESSION_E2E_STARTUP_DURATION ] : never | undefined ;
2643- /**
2644- * Telemetry event sent after the user has closed a TensorBoard webview panel. This event is
2645- * sent with `duration` specifying the total duration of time that the TensorBoard session
2646- * ran for before the user terminated the session.
2647- */
2648- /* __GDPR__
2649- "tensorboard.session_duration" : {
2650- "duration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "donjayamanne" }
2651- }
2652- */
2653- [ EventName . TENSORBOARD_SESSION_DURATION ] : never | undefined ;
2654- /**
2655- * Telemetry event sent when an entrypoint is displayed to the user. This event is sent once
2656- * per entrypoint per session to minimize redundant events since codelenses
2657- * can be displayed multiple times per file.
2658- * The `entrypoint` property indicates whether the command was executed directly by the
2659- * user from the command palette or from a codelens or the user clicking 'yes'
2660- * on the launch prompt we display.
2661- * The `trigger` property indicates whether the entrypoint was triggered by the user
2662- * importing tensorboard, using tensorboard in a notebook, detected tfevent files in
2663- * the workspace. For the palette entrypoint, the trigger is also 'palette'.
2664- */
2665- /* __GDPR__
2666- "tensorboard.entrypoint_shown" : {
2667- "entrypoint" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "donjayamanne" },
2668- "trigger": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "donjayamanne" }
2669- }
2670- */
2671- [ EventName . TENSORBOARD_ENTRYPOINT_SHOWN ] : {
2672- entrypoint : TensorBoardEntrypoint ;
2673- trigger : TensorBoardEntrypointTrigger ;
2674- } ;
26752575 /**
26762576 * Telemetry event sent when the user is prompted to install Python packages that are
26772577 * dependencies for launching an integrated TensorBoard session.
@@ -2732,25 +2632,6 @@ export interface IEventNamePropertyMapping {
27322632 "tensorboard.torch_profiler_import" : { "owner": "donjayamanne" }
27332633 */
27342634 [ EventName . TENSORBOARD_TORCH_PROFILER_IMPORT ] : never | undefined ;
2735- /**
2736- * Telemetry event sent when the extension host receives a message from the
2737- * TensorBoard webview containing a valid jump to source payload from the
2738- * PyTorch profiler TensorBoard plugin.
2739- */
2740- /* __GDPR__
2741- "tensorboard_jump_to_source_request" : { "owner": "donjayamanne" }
2742- */
2743- [ EventName . TENSORBOARD_JUMP_TO_SOURCE_REQUEST ] : never | undefined ;
2744- /**
2745- * Telemetry event sent when the extension host receives a message from the
2746- * TensorBoard webview containing a valid jump to source payload from the
2747- * PyTorch profiler TensorBoard plugin, but the source file does not exist
2748- * on the machine currently running TensorBoard.
2749- */
2750- /* __GDPR__
2751- "tensorboard_jump_to_source_file_not_found" : { "owner": "donjayamanne" }
2752- */
2753- [ EventName . TENSORBOARD_JUMP_TO_SOURCE_FILE_NOT_FOUND ] : never | undefined ;
27542635 [ EventName . TENSORBOARD_DETECTED_IN_INTEGRATED_TERMINAL ] : never | undefined ;
27552636 /**
27562637 * Telemetry event sent before creating an environment.
0 commit comments