[aprofutil] Add -p and -f options (#16766)
commit52aa2cd3e138218f2639200688e9a7808c0f7da6
authorRadek Doulik <radekdoulik@users.noreply.github.com>
Wed, 11 Sep 2019 12:42:58 +0000 (11 05:42 -0700)
committerLarry Ewing <lewing@microsoft.com>
Wed, 11 Sep 2019 12:42:58 +0000 (11 07:42 -0500)
treec70f59b40feee20d08aaca19d40d825f992d9f54
parentf97ceb5c3e9180e1be0d83eb8a5c98c5c945ea33
[aprofutil] Add -p and -f options (#16766)

-p PORT allows easier retrieval of AOT profile from the application
 running with aot profiler, using the socket connection on local PORT

-f instructs the tool to try setup adb port forwarding to/from Android
 device or emulator

Example usage, retrieve the AOT profile from Android:

    > mono aprofutil.exe -s -v -f -p 9998 -o my.aprof
    Calling 'adb forward tcp:9998 tcp:9998'...
    Reading from '127.0.0.1:9998'...
    Read total 94903 bytes...
    Summary:
     Modules:          6
     Types:          262
     Methods:      1,162
    Going to write the profile to 'my.aprof'
mcs/tools/aprofutil/Program.cs