I am currently using FakeAsync in a prototype microbenchmark suite. The eager stack trace creation for timers is fairly expensive and ends up showing up in the top ~N CPU %.
This patch allows this functionality to be disabled in the FakeAsync constructor by passing includeTimerStackTrace: false (the default is true). This patch avoids a breaking change to the FakeTimer api using a null checked getter which can throw, but only if the user has opted into a new parameter.
I am currently using FakeAsync in a prototype microbenchmark suite. The eager stack trace creation for timers is fairly expensive and ends up showing up in the top ~N CPU %.
This patch allows this functionality to be disabled in the FakeAsync constructor by passing includeTimerStackTrace: false (the default is true). This patch avoids a breaking change to the FakeTimer api using a null checked getter which can throw, but only if the user has opted into a new parameter.