mwrap user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* Add enable/disable methods
@ 2019-10-08 22:11 Sam Saffron
  2019-10-10  8:41 ` Eric Wong
  0 siblings, 1 reply; 3+ messages in thread
From: Sam Saffron @ 2019-10-08 22:11 UTC (permalink / raw)
  To: mwrap-public


In our use case we would like to profile one of N unicorn workers
after a certain timeframe.

Would you be open to adding

`Mwrap.enable` : start profiling memory allocations
`Mwrap.disable` : disable all profiling of memory allocations, making
them as close as possible to a no-op.

and an env var for starting disabled


An additional convenience method here for the entire workflow would be:

`mwrap so_path` that returns the path to the module that needs
preloading, this makes it slightly easier to configure production


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-10  8:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-08 22:11 Add enable/disable methods Sam Saffron
2019-10-10  8:41 ` Eric Wong
2019-10-10  8:49   ` Sam Saffron

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

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 read-only IMAP folder(s) and NNTP newsgroup(s).