@@ -1755,38 +1755,111 @@ export interface IEventNamePropertyMapping {
17551755 "locatorVirtualEnv" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
17561756 "locatorVirtualEnvWrapper" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
17571757 "locatorWindowsRegistry" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
1758- "locatorWindowsStore" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" }
1758+ "locatorWindowsStore" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
1759+ "timeToSpawn" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
1760+ "timeToConfigure" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
1761+ "timeToRefresh" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" }
17591762 }
17601763 */
17611764 [ EventName . NATIVE_FINDER_PERF ] : {
17621765 /**
17631766 * Total duration to find envs using native locator.
1767+ * This is the time from the perspective of the Native Locator.
1768+ * I.e. starting from the time the request to refresh was received until the end of the refresh.
17641769 */
17651770 duration : number ;
1771+ /**
1772+ * Time taken by all locators to find the environments.
1773+ * I.e. time for Conda + Poetry + Pyenv, etc (note: all of them run in parallel).
1774+ */
17661775 breakdownLocators ?: number ;
1776+ /**
1777+ * Time taken to find Python environments in the paths found in the PATH env variable.
1778+ */
17671779 breakdownPath ?: number ;
1780+ /**
1781+ * Time taken to find Python environments in the global virtual env locations.
1782+ */
17681783 breakdownGlobalVirtualEnvs ?: number ;
1784+ /**
1785+ * Time taken to find Python environments in the workspaces.
1786+ */
17691787 breakdownWorkspaces ?: number ;
1788+ /**
1789+ * Time taken to find all global Conda environments.
1790+ */
17701791 locatorConda ?: number ;
1792+ /**
1793+ * Time taken to find all Homebrew environments.
1794+ */
17711795 locatorHomebrew ?: number ;
1796+ /**
1797+ * Time taken to find all global Python environments on Linux.
1798+ */
17721799 locatorLinuxGlobalPython ?: number ;
1800+ /**
1801+ * Time taken to find all Python environments belonging to Mac Command Line Tools .
1802+ */
17731803 locatorMacCmdLineTools ?: number ;
1804+ /**
1805+ * Time taken to find all Python environments belonging to Mac Python Org.
1806+ */
17741807 locatorMacPythonOrg ?: number ;
1808+ /**
1809+ * Time taken to find all Python environments belonging to Mac XCode.
1810+ */
17751811 locatorMacXCode ?: number ;
1812+ /**
1813+ * Time taken to find all Pipenv environments.
1814+ */
17761815 locatorPipEnv ?: number ;
1816+ /**
1817+ * Time taken to find all Poetry environments.
1818+ */
17771819 locatorPoetry ?: number ;
1820+ /**
1821+ * Time taken to find all Pyenv environments.
1822+ */
17781823 locatorPyEnv ?: number ;
1824+ /**
1825+ * Time taken to find all Venv environments.
1826+ */
17791827 locatorVenv ?: number ;
1828+ /**
1829+ * Time taken to find all VirtualEnv environments.
1830+ */
17801831 locatorVirtualEnv ?: number ;
1832+ /**
1833+ * Time taken to find all VirtualEnvWrapper environments.
1834+ */
17811835 locatorVirtualEnvWrapper ?: number ;
1836+ /**
1837+ * Time taken to find all Windows Registry environments.
1838+ */
17821839 locatorWindowsRegistry ?: number ;
1840+ /**
1841+ * Time taken to find all Windows Store environments.
1842+ */
17831843 locatorWindowsStore ?: number ;
1844+ /**
1845+ * Total time taken to spawn the Native Python finder process.
1846+ */
1847+ timeToSpawn ?: number ;
1848+ /**
1849+ * Total time taken to configure the Native Python finder process.
1850+ */
1851+ timeToConfigure ?: number ;
1852+ /**
1853+ * Total time taken to refresh the Environments (from perspective of Python extension).
1854+ * Time = total time taken to process the `refresh` request.
1855+ */
1856+ timeToRefresh ?: number ;
17841857 } ;
17851858 /**
17861859 * Telemetry event sent when discovery of all python environments using the native locator(virtualenv, conda, pipenv etc.) finishes.
17871860 */
17881861 /* __GDPR__
1789- "python_interpreter_discovery_native " : {
1862+ "python_interpreter_discovery_invalid_native " : {
17901863 "duration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
17911864 "invalidVersionsCondaEnvs" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
17921865 "invalidVersionsCustomEnvs" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
0 commit comments