10장. Performance와 Memory를 질문으로 사용한다
성능 recording 전에 느린 action과 시간 범위를 고정한다. main thread long task, layout, script, network를 구분한다. profiler 자체 overhead와 낮은 사양 device를 고려한다.
질문: 결제 버튼 뒤 800ms 동안 main thread를 누가 점유하는가?
증거: task 620ms / JSON formatting 510ms / layout 40ms
memory leak은 한 snapshot 크기가 아니라 같은 workflow 반복 뒤 retained object가 계속 증가하는지 본다. detached DOM, listener, timer, cache owner를 찾는다. production heap profile은 개인정보와 부하 위험을 승인받는다.