Project-system: Scalability performance tests should GC before snapshotting working set

Created on 12 Jun 2019  路  5Comments  路  Source: dotnet/project-system

The performance tests should run the following before snapshotting working set:

C# GC.Collect(); GC.RunPendingFinalizers(); GC.Collect();

Bug Tenet-Performance

All 5 comments

The fix isn't that simple unfortunately. The code you linked runs in the driving console process, not devenv.exe.

There's actually a command called "Tools.ForceGC" that does a GC - assuming we have access to DTE out of proc in the console app, we should be able to run that command.

Forcing a GC is well understood best practice in APEX. There is support for this in APEX here. It uses the DTE apis as @davkean describes

fixed by AB#186458

Was this page helpful?
0 / 5 - 0 ratings