| Summary: | [Win] DumpRenderTreeWatchDog.py is not checked into source | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Per Arne Vollan <pvollan> | ||||||
| Component: | Tools / Tests | Assignee: | Per Arne Vollan <pvollan> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | bfulgham, commit-queue, lforschler, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=214257 | ||||||||
| Attachments: |
|
||||||||
|
Description
Per Arne Vollan
2019-04-03 15:07:44 PDT
Created attachment 366654 [details]
Patch
Comment on attachment 366654 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=366654&action=review > Tools/EWSTools/dumprendertreewatchdog.py:29 > + these should be alphabetized > Tools/EWSTools/dumprendertreewatchdog.py:37 > + proc_fetch = subprocess.Popen("ps -e | grep \"DumpRenderTree\" | awk '{print $1}'", shell=True, stdout=subprocess.PIPE,) I think this will also capture the ps process itself, right? On my machine with no DumpRenderTree processes running, this command will always return one pid, itself. > Tools/EWSTools/dumprendertreewatchdog.py:47 > + # If the active and current PID are the and an hour has elapsed, kill DumpRenderTree and reset the active PID to 0 I think this comment is missing a word between "the" and "and" Comment on attachment 366654 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=366654&action=review >> Tools/EWSTools/dumprendertreewatchdog.py:37 >> + proc_fetch = subprocess.Popen("ps -e | grep \"DumpRenderTree\" | awk '{print $1}'", shell=True, stdout=subprocess.PIPE,) > > I think this will also capture the ps process itself, right? On my machine with no DumpRenderTree processes running, this command will always return one pid, itself. Also, would this be better named pid_fetch? (I just tested on Windows and it appears the functionality of ps does not output the ps process itself... so maybe this is ok) Created attachment 366673 [details]
Patch
(In reply to Lucas Forschler from comment #4) > Comment on attachment 366654 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=366654&action=review > > >> Tools/EWSTools/dumprendertreewatchdog.py:37 > >> + proc_fetch = subprocess.Popen("ps -e | grep \"DumpRenderTree\" | awk '{print $1}'", shell=True, stdout=subprocess.PIPE,) > > > > I think this will also capture the ps process itself, right? On my machine with no DumpRenderTree processes running, this command will always return one pid, itself. > > Also, would this be better named pid_fetch? > > (I just tested on Windows and it appears the functionality of ps does not > output the ps process itself... so maybe this is ok) Thanks for reviewing! I have updated the patch. Comment on attachment 366673 [details] Patch Clearing flags on attachment: 366673 Committed r243879: <https://trac.webkit.org/changeset/243879> All reviewed patches have been landed. Closing bug. |