Skip to content

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

License

Notifications You must be signed in to change notification settings

KyleAMathews/gatsby-plugin-inspector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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%.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published