Update files from Source Depot changeset [SD:700586]

Corresponds to 84837459913bb00660964d19ea07f5e0c7b4b442 in psl-monad.
This commit is contained in:
PowerShell Team authored and Andrew Schwartzmeyer committed 2016-04-28 13:53:04 -07:00
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;
}