Oh, yes, you're right, as always.
Sorry...
I often use to play with words, but saying and writing something with the same words isn't really the same...
I use double quotes and emoticons trying to give the words the right meaning and characterization.
In this case I haven't thought the implications of my words, it's hard to understand the real meaning on something written and sometimes I must read my comments a few times before I click the submit button.
My apologies.
It is currently March 29th, 2024, 1:40 pm
Top Memory Process Numeric for RoundMeter
-
- Moderator
- Posts: 1387
- Joined: April 11th, 2013, 8:08 pm
- Location: Italy
-
- Posts: 445
- Joined: March 17th, 2011, 4:54 am
Re: Top Memory Process Numeric for RoundMeter
JSMorely - Lets start again. I believe AdvancedCPU provides the top CPU process. I want the Top MEMORY Process percent or size value to use in a RoundMeter.
-
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Top Memory Process Numeric for RoundMeter
Ah, sorry, I obviously misread. I don't have a solution for that at hand...bill98 wrote:JSMorely - Lets start again. I believe AdvancedCPU provides the top CPU process. I want the Top MEMORY Process percent or size value to use in a RoundMeter.
-
- Posts: 56
- Joined: February 5th, 2014, 3:44 pm
- Location: Canada
Re: Top Memory Process Numeric for RoundMeter
So I've been thinking about this since you posted. If there was a way to grab cmd output and display it you could do:
tasklist /NH | sort /+65 /R
That said I'm still trying to find a way to pull only the top 10.
Output looks like this:
Now if Rainmeter was able to pull in WMI info and/or Windows PowerShell stuff this would probably be much easier.
Powershell for top 10 memory hogs:
PS C:\> get-process | sort ws -descending | select -first 10
Output:
Will come back to this if I find anything cause I'm interested in this functionality too. Even more so If I find a way to pull in WMI objects.
Side Note/FYI:
WMI = Windows Management Instrumentation
- Backwards compatible with older Windows OS (Pre Win8)
- Some Classes contain Methods for modifying Instances, but for the most part is Read Only
Going forward with Winblows 8+ MS is migrating to CIM although WMI is still supported.
CIM = Common Information Model
If your interested in the type of information you can pull in with WMI grab this little VBS/HTA app called Scriptomatic and see.
tasklist /NH | sort /+65 /R
That said I'm still trying to find a way to pull only the top 10.
Output looks like this:
Powershell for top 10 memory hogs:
PS C:\> get-process | sort ws -descending | select -first 10
Output:
Side Note/FYI:
WMI = Windows Management Instrumentation
- Backwards compatible with older Windows OS (Pre Win8)
- Some Classes contain Methods for modifying Instances, but for the most part is Read Only
Going forward with Winblows 8+ MS is migrating to CIM although WMI is still supported.
CIM = Common Information Model
If your interested in the type of information you can pull in with WMI grab this little VBS/HTA app called Scriptomatic and see.
-
- Posts: 1740
- Joined: November 13th, 2012, 9:53 pm
-
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Top Memory Process Numeric for RoundMeter
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
[Variables]
GetLine=.*(.*)\r\n
GetName=(?siU)^(.*)[ ]{1,}
GetKBytes=(?si).* ([,0-9]{1,}) K$
[MeasureUpdate]
Measure=Calc
Formula=1
UpdateDivider=5
OnUpdateAction=[!CommandMeasure MeasureMemory Run]
[MeasureMemory]
Measure=Plugin
Plugin=RunCommand
Parameter=tasklist /NH | sort /+65 /R
OutputFile=#CURRENTPATH#Memory.txt
OutputType=ANSI
FinishAction=[!CommandMeasure MeasureParse "Update"][!UpdateMeasure MeasureParse]
[MeasureParse]
Measure=Plugin
Plugin=WebParser
URL=file://#CURRENTPATH#Memory.txt
RegExp=(?siU)#GetLine##GetLine##GetLine##GetLine##GetLine##GetLine##GetLine##GetLine##GetLine##GetLine#
UpdateRate=86400
UpdateDivider=-1
[MeasureName1]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParse]
RegExp=#GetName#
StringIndex=1
StringIndex2=1
[MeasureMemory1]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParse]
RegExp=#GetKBytes#
StringIndex=1
StringIndex2=1
Substitute=",":""
[MeasureMemory1Number]
Measure=Calc
Formula=([MeasureMemory1] * 1024)
DynamicVariables=1
[MeasureName2]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParse]
RegExp=#GetName#
StringIndex=2
StringIndex2=1
[MeasureMemory2]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParse]
RegExp=#GetKBytes#
StringIndex=2
StringIndex2=1
Substitute=",":""
[MeasureMemory2Number]
Measure=Calc
Formula=([MeasureMemory2] * 1024)
DynamicVariables=1
...
[MeterName1]
Meter=String
MeasureName=MeasureName1
FontSize=12
FontColor=255,255,255,255
StringCase=Proper
AntiAlias=1
[MeterMemory1]
Meter=String
MeasureName=MeasureMemory1Number
X=200
Y=0r
FontSize=12
FontColor=255,255,255,255
StringAlign=Right
AutoScale=1
AntiAlias=1
[MeterName2]
Meter=String
MeasureName=MeasureName2
X=0
Y=4R
FontSize=12
FontColor=255,255,255,255
StringCase=Proper
AntiAlias=1
[MeterMemory2]
Meter=String
MeasureName=MeasureMemory2Number
X=200
Y=0r
FontSize=12
FontColor=255,255,255,255
StringAlign=Right
AutoScale=1
AntiAlias=1
...
You do not have the required permissions to view the files attached to this post.
-
- Posts: 56
- Joined: February 5th, 2014, 3:44 pm
- Location: Canada
-
- Posts: 56
- Joined: February 5th, 2014, 3:44 pm
- Location: Canada
Re: Top Memory Process Numeric for RoundMeter
Just realized that this does work, but there's a small problem. It's constantly writing to the temp file thus using cycles on the drive. Not so good. So for that reason scrapped this from my skin.