• Skip to primary navigation
  • Skip to main content
  • Skip to footer

JH Tech Services

A knowledgebase

  • Portfolio
  • Knowledgebase
  • About

Profiling/Evaluating WordPress site while developing using WP-CLI

July 19, 2019 by jer0dh

Adds profile command


wp package install wp-cli/profile-command
wp package list

See the commands you can run


wp profile --help

–spotlight eliminates all 0 values

See query time, number of queries, cache hits, etc


wp profile stage --all --spotlight

Profile a given hook (ex. init)


wp profile hook init --spotlight
  • Knowledgebase

Footer

  • Portfolio
  • Knowledgebase
  • About

© 2023