I failed to find official article about how to enable Developer Dashboard for SP2016. The only one I can find is this old one for SP2010 foundation.
The PowerShell script it suggested is :
(Get-SPFarm).PerformanceMonitor.DeveloperDashboardLevel = "On"
However I also find some other blogs recommend this one:
$var = Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings;
$var.DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::On
$var.Update()
Are they actually the same? Or they have different behavior?