title: How to measure the memory usage of javascript JIT compilation and optimization?
body: <p>We have a huge legacy JS web application which suffers from performance problems. We are keep profiling our JS code to optimize the implementation and improve the performance. However, there is also possibility that the overhead of JIT optimization/de-optimization may also contribute to the slow performance in some cases.</p>
  
  <p>Question
  <strong>How can I measure the memory footprint for JS code compilation and optimization compilation?</strong></p>
  
  <p>Why I'm so keen on the memory footprint of JS engine itself? Our App is running on mobile devices, from high-end Surface Pro, iPad Pro to low end android devices (&lt;150USD). So the memory footprint is critical for both the performance and stability of the App.</p>