Date: Fri, 16 Jun 2017 17:16:38
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Debugging advice
My environment is (maybe unfortunately) Cygwin64 under Windows, of course.
Occasionally while working emacs stops responding to me and I watch it's
memory consumption rise from 407MB to 1533MB along with a ramp in CPU usage.
I want to find out what it is doing and can not find any information on how
to monitor background activity in Emacs.
A tool I've used for that in the past is the cpu profiler. Try to
M-x profiler-start, then try and reproduce the problem and then M-x
profiler-report.
Stefan