mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 20:56:02 +00:00
Update files from Source Depot changeset [SD:700586]
Corresponds to 84837459913bb00660964d19ea07f5e0c7b4b442 in psl-monad.
This commit is contained in:
1 parent
a7ba3395b9
commit
3998ce06ba
40 files changed
+1631
-484
No files matched your search
@@ -22,6 +22,7 @@ using System.Text;
|
||||
using Microsoft.Win32;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.PowerShell.Telemetry.Internal;
|
||||
|
||||
#if CORECLR
|
||||
// Use stub for Serializable attribute and ISerializable related types
|
||||
@@ -63,6 +64,8 @@ namespace System.Management.Automation
|
||||
|
||||
internal bool Compile(bool optimized)
|
||||
{
|
||||
var sw = new Stopwatch();
|
||||
sw.Start();
|
||||
if (_attributes == null)
|
||||
{
|
||||
InitializeMetadata();
|
||||
@@ -86,6 +89,9 @@ namespace System.Management.Automation
|
||||
CompileOptimized();
|
||||
}
|
||||
|
||||
sw.Stop();
|
||||
TelemetryAPI.ReportScriptTelemetry((Ast)_ast, !optimized, sw.ElapsedMilliseconds);
|
||||
|
||||
return optimized;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user