더이상의 console.log(
performance: ${Date.now() - startDateTime})
은 naver..
Self-Profiling API 를 소개하는 간략한 소개글이다.
// Begin a new profiling session
// Provide a sampleInterval (period which the session obtains samples)
const profiler = await performance.profile({ sampleInterval: 10 });
// Do some expensive work
performSomeTask();
// Stop the profiler and return the trace captured
const trace = await profiler.stop();
// Send the trace to an endpoint for reporting
sendTraceToAnalytics(trace);
자바스크립트를 사용하면서 저지르기 쉬운 몇가지 잘못된 코드 스니핏을 소개하는 글. 한번 가벼운 마음으로 혹시 나는 몇개나 해당될까? 하고 읽어보셔도 좋을것 같다.
Written on November 9th, 2020 by genie-youn