Web Tracing Framework, by Google, is a set of tools and scripts for analyzing the performance of any JavaScript-related code.
It is mostly ideal for JavaScript-heavy apps and may not be necessary for standard web pages where JavaScript is only used for simple interactions.
There is a manual embedding option and a Chrome extension for getting internal browser data and command line tools (or Nodejs support) for processing this data.
The framework allows us to choose which methods/events to track and visualizes them in a friendly interface.
A “heap tracking” feature helps finding “how the memory is used by every function” to optimize when necessary.