Function: internal-stack-stats

internal-stack-stats is a function defined in bytecode.c.

Signature

(internal-stack-stats)

Documentation

internal

Source Code

// Defined in /usr/src/emacs/src/bytecode.c
{
  struct bc_thread_state *bc = &current_thread->bc;
  int nframes = 0;
  int nruns = 0;
  for (struct bc_frame *fp = bc->fp; fp; fp = fp->saved_fp)
    {
      nframes++;
      if (fp->saved_top == NULL)
	nruns++;
    }
  fprintf (stderr, "%d stack frames, %d runs\n", nframes, nruns);
  return Qnil;
}