Measure-DbatoolsImport
View SourceSynopsis
Measures and displays detailed timing metrics for dbatools module import operations
Description
Returns performance data collected during the dbatools module import process, showing the duration of each import step. This function helps troubleshoot slow module loading times by identifying which components take the longest to initialize. The timing data includes loading the dbatools library, type aliases, internal commands, external commands, and other initialization steps. Only displays steps that took measurable time (greater than 00:00:00) to complete.
Syntax
Measure-DbatoolsImport
[<CommonParameters>]
Examples
Example: 1
PS C:\> Measure-DbatoolsImport
Displays the import load times of the dbatools PowerShell module
Example: 2
PS C:\> Import-Module dbatools
PS C:\> Measure-DbatoolsImport
Displays the import load times of the dbatools PowerShell module
dbatools