Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^11: time and mem usage of pgm

by BrowserUk (Patriarch)
on Mar 17, 2015 at 13:11 UTC ( [id://1120327]=note: print w/replies, xml ) Need Help??


in reply to Re^10: time and mem usage of pgm
in thread time and mem usage of pgm

Update: Error corrected.

Sorry. I missed a set of quotes. Could you try this version please:

perl -wle" print `tasklist /nh /fi \"PID eq $$\"` =~ m[(\S+ K)$]"

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

Replies are listed 'Best First'.
Re^12: time and mem usage of pgm
by carolw (Sexton) on Mar 17, 2015 at 13:16 UTC

    ERROR: invalid option/parameter - 'eq'

    type TASKLIST /? for usage

      That tells me enough that tasklist.exe exists on your system; therefore the sub mem() should work on your system.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
      In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

        in

        print time - $^T, " seconds\nRam:", mem;

        is mem a variable?

        on win7, I get the same output

        Ram: mem

        but when running the last perl command, I get

        Error: the search filter cannot be recongnized

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1120327]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-20 02:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found