Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-plugin-inspector

Use Node.js inspector API to sample CPU/memory of a Gatsby build

Install

npm i gatsby-plugin-inspector

Use

Add the plugin to your gatsby-config.js file and enable one or both the CPU and memory profiling:

module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-inspector`,
      options: {
        cpu: true,
        heap: true,
      }
    }
  ]
}

This should only be enabled for testing as it slows down development and builds by 5-10%.

© 2023 Gatsby, Inc.