Home
Insert
Update snippet 'How much memory @SlackHQ uses?'
Title
Description
This handy snippet calculates how much memory your Slack client uses. Use at your own risk. Mental safety cannot be guaranteed.
Source code
System.Diagnostics.Process.GetProcessesByName("slack") |> Seq.sumBy (fun p -> float (p.PrivateMemorySize64 / 1024L / 1024L) / 1024.)
Tags
process
process
Author
Link
Reference NuGet packages
If your snippet has external dependencies, enter the names of NuGet packages to reference, separated by a comma (
#r
directives are not required).
Update