commands

^

Measure-DbatoolsImport

Author Chrissy LeMaire (@cl), netnerds.net
Availability Windows, Linux, macOS

 

Want to see the source code for this command? Check out Measure-DbatoolsImport on GitHub.
Want to see the Bill Of Health for this command? Check out Measure-DbatoolsImport.

Synopsis

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