@@ -1755,38 +1755,111 @@ export interface IEventNamePropertyMapping {
1755
1755
"locatorVirtualEnv" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
1756
1756
"locatorVirtualEnvWrapper" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
1757
1757
"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" }
1759
1762
}
1760
1763
*/
1761
1764
[ EventName . NATIVE_FINDER_PERF ] : {
1762
1765
/**
1763
1766
* 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.
1764
1769
*/
1765
1770
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
+ */
1766
1775
breakdownLocators ?: number ;
1776
+ /**
1777
+ * Time taken to find Python environments in the paths found in the PATH env variable.
1778
+ */
1767
1779
breakdownPath ?: number ;
1780
+ /**
1781
+ * Time taken to find Python environments in the global virtual env locations.
1782
+ */
1768
1783
breakdownGlobalVirtualEnvs ?: number ;
1784
+ /**
1785
+ * Time taken to find Python environments in the workspaces.
1786
+ */
1769
1787
breakdownWorkspaces ?: number ;
1788
+ /**
1789
+ * Time taken to find all global Conda environments.
1790
+ */
1770
1791
locatorConda ?: number ;
1792
+ /**
1793
+ * Time taken to find all Homebrew environments.
1794
+ */
1771
1795
locatorHomebrew ?: number ;
1796
+ /**
1797
+ * Time taken to find all global Python environments on Linux.
1798
+ */
1772
1799
locatorLinuxGlobalPython ?: number ;
1800
+ /**
1801
+ * Time taken to find all Python environments belonging to Mac Command Line Tools .
1802
+ */
1773
1803
locatorMacCmdLineTools ?: number ;
1804
+ /**
1805
+ * Time taken to find all Python environments belonging to Mac Python Org.
1806
+ */
1774
1807
locatorMacPythonOrg ?: number ;
1808
+ /**
1809
+ * Time taken to find all Python environments belonging to Mac XCode.
1810
+ */
1775
1811
locatorMacXCode ?: number ;
1812
+ /**
1813
+ * Time taken to find all Pipenv environments.
1814
+ */
1776
1815
locatorPipEnv ?: number ;
1816
+ /**
1817
+ * Time taken to find all Poetry environments.
1818
+ */
1777
1819
locatorPoetry ?: number ;
1820
+ /**
1821
+ * Time taken to find all Pyenv environments.
1822
+ */
1778
1823
locatorPyEnv ?: number ;
1824
+ /**
1825
+ * Time taken to find all Venv environments.
1826
+ */
1779
1827
locatorVenv ?: number ;
1828
+ /**
1829
+ * Time taken to find all VirtualEnv environments.
1830
+ */
1780
1831
locatorVirtualEnv ?: number ;
1832
+ /**
1833
+ * Time taken to find all VirtualEnvWrapper environments.
1834
+ */
1781
1835
locatorVirtualEnvWrapper ?: number ;
1836
+ /**
1837
+ * Time taken to find all Windows Registry environments.
1838
+ */
1782
1839
locatorWindowsRegistry ?: number ;
1840
+ /**
1841
+ * Time taken to find all Windows Store environments.
1842
+ */
1783
1843
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 ;
1784
1857
} ;
1785
1858
/**
1786
1859
* Telemetry event sent when discovery of all python environments using the native locator(virtualenv, conda, pipenv etc.) finishes.
1787
1860
*/
1788
1861
/* __GDPR__
1789
- "python_interpreter_discovery_native " : {
1862
+ "python_interpreter_discovery_invalid_native " : {
1790
1863
"duration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
1791
1864
"invalidVersionsCondaEnvs" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
1792
1865
"invalidVersionsCustomEnvs" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
0 commit comments