@@ -77,23 +77,6 @@ describe('TelemetrySpan', function () {
7777 { result : 'Succeeded' , duration : 100 } ,
7878 ] )
7979 } )
80-
81- it ( 'records performance' , function ( ) {
82- const { expectedUserCpuUsage, expectedSystemCpuUsage, expectedHeapTotal } = stubPerformance ( sandbox )
83- const span = new TelemetrySpan ( 'function_call' , {
84- emit : true ,
85- } )
86- span . start ( )
87- clock . tick ( 90 )
88- span . stop ( )
89- assertTelemetry ( 'function_call' , {
90- userCpuUsage : expectedUserCpuUsage ,
91- systemCpuUsage : expectedSystemCpuUsage ,
92- heapTotal : expectedHeapTotal ,
93- duration : 90 ,
94- result : 'Succeeded' ,
95- } )
96- } )
9780} )
9881
9982describe ( 'TelemetryTracer' , function ( ) {
@@ -269,28 +252,6 @@ describe('TelemetryTracer', function () {
269252 assert . match ( metric . requestId ?? '' , / [ a - z 0 - 9 - ] + / )
270253 } )
271254
272- it ( 'records performance' , function ( ) {
273- clock = installFakeClock ( )
274- const { expectedUserCpuUsage, expectedSystemCpuUsage, expectedHeapTotal } = stubPerformance ( sandbox )
275- tracer . run (
276- 'function_call' ,
277- ( ) => {
278- clock ?. tick ( 90 )
279- } ,
280- {
281- emit : true ,
282- }
283- )
284-
285- assertTelemetry ( 'function_call' , {
286- userCpuUsage : expectedUserCpuUsage ,
287- systemCpuUsage : expectedSystemCpuUsage ,
288- heapTotal : expectedHeapTotal ,
289- duration : 90 ,
290- result : 'Succeeded' ,
291- } )
292- } )
293-
294255 describe ( 'nested run()' , function ( ) {
295256 let uuidStub : sinon . SinonStub
296257 const nestedName = 'nested_metric' as MetricName
0 commit comments