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

it works partly under win8. it works for time but for mem, I think it doesn't find the mem value and just prints out mem literally instead of the mem value. Does it come from the code or is it a win8-related problem?

Replies are listed 'Best First'.
Re^9: time and mem usage of pgm
by BrowserUk (Patriarch) on Mar 17, 2015 at 11:22 UTC
    just prints out mem literally instead of the mem value.

    Could you try the following 1-liner at your console; then copy&paste the results into a reply here 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

      can't find string terminator "`" anywhere before EOF at -e line 1

        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