Skip to content

Instantly share code, notes, and snippets.

@SteveLauC
Last active September 10, 2025 05:34
Show Gist options
  • Select an option

  • Save SteveLauC/7b43c09e69b254c9a921ae2335ccd711 to your computer and use it in GitHub Desktop.

Select an option

Save SteveLauC/7b43c09e69b254c9a921ae2335ccd711 to your computer and use it in GitHub Desktop.
osquery
select ROUND(SUM(resident_size)/1024.0/1024.0, 2) as 'Memory (in MiB)', COUNT(*) as 'Processes Count' from processes WHERE name = 'Google Chrome' OR name LIKE '%Google Chrome%'
select ROUND(SUM(resident_size)/1024.0/1024.0, 2) as 'Memory (in MiB)', COUNT(*) as 'Processes Count' from processes WHERE name = 'Code' OR name LIKE 'Code Helper%';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment