Bug 186293 - run-testmem should have a dry run option and an option to parse the stdout of executing the dry run
Summary: run-testmem should have a dry run option and an option to parse the stdout of...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Saam Barati
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-06-04 17:20 PDT by Saam Barati
Modified: 2018-06-05 12:00 PDT (History)
14 users (show)

See Also:


Attachments
patch (8.51 KB, patch)
2018-06-05 11:00 PDT, Saam Barati
mark.lam: review+
Details | Formatted Diff | Diff
patch (8.51 KB, patch)
2018-06-05 11:08 PDT, Saam Barati
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Saam Barati 2018-06-04 17:20:29 PDT
So it can create a bunch of commands for me and I can run it on a device that doesn't have a ruby
Comment 1 Saam Barati 2018-06-05 11:00:04 PDT
Created attachment 341976 [details]
patch
Comment 2 Joseph Pecoraro 2018-06-05 11:06:08 PDT
Comment on attachment 341976 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=341976&action=review

> Tools/Scripts/run-testmem:40
> +    puts "--parse       (-p)   After executing the dry run, capture its stdout and write it to a file. Pass the path to that file for this option and run-testmem will compute the results of the benchmark run."
> +    puts "--help        (-h)   print this message"

Some of these start with a capital and end in a period, some don't. Should be consistent.

> Tools/Scripts/run-testmem:261
> +

Nit: drop empty line
Comment 3 Saam Barati 2018-06-05 11:08:07 PDT
Created attachment 341978 [details]
patch
Comment 4 Saam Barati 2018-06-05 11:08:28 PDT
(In reply to Saam Barati from comment #3)
> Created attachment 341978 [details]
> patch

Addressed Joe's comments.
Comment 5 Mark Lam 2018-06-05 11:18:20 PDT
Comment on attachment 341976 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=341976&action=review

r=me with fixes.

> Tools/Scripts/run-testmem:138
>          filePath = dirPath.join(filename).to_s
> +        filePath = Pathname.new($scriptPath).join(filename).to_s if $scriptPath

I think line 137 is unnecessary now.
Comment 6 Mark Lam 2018-06-05 11:24:42 PDT
Comment on attachment 341976 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=341976&action=review

>> Tools/Scripts/run-testmem:138
>> +        filePath = Pathname.new($scriptPath).join(filename).to_s if $scriptPath
> 
> I think line 137 is unnecessary now.

Oops, never mind.  I missed the "if $scriptPath".  Line 137 is necessary.
Comment 7 WebKit Commit Bot 2018-06-05 11:54:17 PDT
Comment on attachment 341978 [details]
patch

Clearing flags on attachment: 341978

Committed r232517: <https://trac.webkit.org/changeset/232517>
Comment 8 WebKit Commit Bot 2018-06-05 11:54:18 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2018-06-05 12:00:38 PDT
<rdar://problem/40817463>