zsh-users
 help / color / mirror / code / Atom feed
* `reset-prompt` timer without leaking memory?
@ 2018-09-24 15:37 Ben Klein
  0 siblings, 0 replies; only message in thread
From: Ben Klein @ 2018-09-24 15:37 UTC (permalink / raw)
  To: zsh-users


[-- Attachment #1.1.1: Type: text/plain, Size: 1103 bytes --]

I am working on a new ZSH theme and am trying to get time shown with
seconds while waiting on input.

My arbitrary approaches have so far resulted in the zsh process
consuming more and more memory the longer I leave it.

On zsh 5.4.2: zsh -f

robo-unseptium% hi(){ zle .reset-prompt }
robo-unseptium% trap hi ALRM
robo-unseptium% TMOUT=2

And then I let the shell sit there and it slowly consumes more memory.
Watching with:

ps --ppid 12490 -o command,vsize,rss,%mem,size

Most noticeably, the RSS continues to increment by 4kb every so often,
not sure if it's exactly on the ALRM signal timing but it appears to be
on a similar regular interval. (Started it last night at 10MB, now at
60MB memory usage.)

Should I try a different zsh version or start digging through memory? Or
is there some option I am potentially missing that would stop this
growing memory?

-- 
*\Ben Klein*
Founder and Owner of Robosane, robobenklein@robosane.net
You can find me elsewhere online as 'robobenklein'.
If you need to contact me securely, I am also reachable via GPG, or on
Keybase.

[-- Attachment #1.1.2: Type: text/html, Size: 1679 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-24 15:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-24 15:37 `reset-prompt` timer without leaking memory? Ben Klein

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).