Announcement

Collapse
No announcement yet.

Super simple memory log

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Super simple memory log

    I just thought I'd share this extremely simple memory log. It might be useful when trying to find potential memory leaks.

    Code:
    Sub Main(parm as object)
        My.Computer.FileSystem.WriteAllText(My.Computer.FileSystem.SpecialDirectories.Desktop & "\HS-memory.txt", Now & " - " & hs.HSMemoryUsed & ControlChars.CrLf, True)
    End Sub

    If you're planning to use Excel, then consider this code instead. It changes - with tab:
    Code:
    Sub Main(parm as object)
        My.Computer.FileSystem.WriteAllText(My.Computer.FileSystem.SpecialDirectories.Desktop & "\HS-memory.txt", Now & ControlChars.Tab & hs.HSMemoryUsed & ControlChars.CrLf, True)
    End Sub
    Last edited by Moskus; January 10, 2011, 02:26 AM.
    HSPro 3.0.0.458, Z-NET with Z-wave plugin 3.0.1.190, RFXCOM + 2x RFXtrx433E, HSTouch, Squeezebox plugin, iTach IP/WF2IR & GC-100-6 with UltraGCIR, BLDenon, NetcamStudio, Jon00s Webpage builder, Harmony Hub plugin, SCSIP (with FreePBX), Arduino plugin, IFTTT, Pushalot plugin, Device History plugin.
    Running on Windows 10 (64) virtualized
    on ESXi (Fujitsu Primergy TX150 S8).
    WinSeer (for Win10) - TextSeer - FitbitSeer - HSPI_MoskusSample

    Are you Norwegian (or Scandinavian) and getting started with HomeSeer? Read the "HomeSeer School"!
Working...
X