Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle usage stats #645

Closed
wants to merge 8 commits into from
Closed

handle usage stats #645

wants to merge 8 commits into from

Conversation

vsecoder
Copy link

@vsecoder vsecoder commented Mar 2, 2024

An attempt (like a working one) to add getting execution statistics via time.
https://www.man7.org/linux/man-pages/man1/time.1.html

Example:

{
   "run":{
      "stdout":"hello world\n",
      "stderr":"",
      "code":0,
      "signal":null,
      "output":"hello world",
      "stats":{
         "elapsed_time":"0.20s",      <-- Elapsed real time
         "cpu_time":"0.00s / 0.01s",  <-- Total num of CPU-seconds that the process spent in user/kenrel mode
         "max_mem":"9636Kb"           <-- Max resident set size of the process
      },
      "exec_time":221
   },
   "language":"python",
   "version":"3.12.0"
}

@Brikaa
Copy link
Member

Brikaa commented Oct 4, 2024

Closing this PR since usage stats were handled in the newest version of Piston using Isolate. Thanks though!

@Brikaa Brikaa closed this Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants