Lines Matching +full:curl +full:- +full:for +full:- +full:win
8 # http://www.apache.org/licenses/LICENSE-2.0
13 # See the License for the specific language governing permissions and
17 # DO NOT EDIT. Auto-generated by tools/gen_amalgamated_python_tools
36 # ----- Amalgamator: begin of python/perfetto/prebuilts/manifests/traceconv.py
37 # This file has been generated by: tools/roll-prebuilts v49.0
40 'mac-amd64',
46 … 'https://commondatastorage.googleapis.com/perfetto-luci-artifacts/v49.0/mac-amd64/traceconv',
54 'mac-arm64',
60 … 'https://commondatastorage.googleapis.com/perfetto-luci-artifacts/v49.0/mac-arm64/traceconv',
68 'linux-amd64',
74 … 'https://commondatastorage.googleapis.com/perfetto-luci-artifacts/v49.0/linux-amd64/traceconv',
82 'linux-arm',
88 … 'https://commondatastorage.googleapis.com/perfetto-luci-artifacts/v49.0/linux-arm/traceconv',
96 'linux-arm64',
102 … 'https://commondatastorage.googleapis.com/perfetto-luci-artifacts/v49.0/linux-arm64/traceconv',
110 'android-arm',
116 … 'https://commondatastorage.googleapis.com/perfetto-luci-artifacts/v49.0/android-arm/traceconv',
121 'android-arm64',
127 … 'https://commondatastorage.googleapis.com/perfetto-luci-artifacts/v49.0/android-arm64/traceconv',
132 'android-x86',
138 … 'https://commondatastorage.googleapis.com/perfetto-luci-artifacts/v49.0/android-x86/traceconv',
143 'android-x64',
149 … 'https://commondatastorage.googleapis.com/perfetto-luci-artifacts/v49.0/android-x64/traceconv',
154 'windows-amd64',
160 …'https://commondatastorage.googleapis.com/perfetto-luci-artifacts/v49.0/windows-amd64/traceconv.ex…
168 # ----- Amalgamator: end of python/perfetto/prebuilts/manifests/traceconv.py
170 # ----- Amalgamator: begin of python/perfetto/prebuilts/perfetto_prebuilts.py
177 # http://www.apache.org/licenses/LICENSE-2.0
182 # See the License for the specific language governing permissions and
185 Functions to fetch pre-pinned Perfetto prebuilts.
188 - Into the //tools/{trace_processor, traceconv} scripts, which are just plain
190 - Into the //tools/{heap_profiler, record_android_trace} scripts, which contain
191 some other hand-written python code.
196 'arch': 'mac-amd64',
236 # Avoid recomputing the SHA-256 on each invocation. The SHA-256 of the last
249 subprocess.check_call(['curl', '-f', '-L', '-#', '-o', tmp_path, url])
253 raise Exception('Checksum mismatch for %s (actual: %s, expected: %s)' %
268 for entry in manifest:
269 # If the caller overrides the arch, just match that (for Android prebuilts).
283 ('No prebuilts available for %s-%s\n' % (plat, machine)) +
284 'See https://perfetto.dev/docs/contributing/build-instructions')
298 # ----- Amalgamator: end of python/perfetto/prebuilts/perfetto_prebuilts.py
306 UUID = str(uuid.uuid4())[-6:]
360 "https://perfetto.dev/docs/data-sources/native-heap-profiler#troubleshooting.",
365 return ('https://perfetto.dev/docs/data-sources/native-heap-profiler'
366 '#known-issues-android{}'.format(number))
380 'ro.build.version.release_or_codename']).decode('utf-8').strip()
393 'ro.system.build.version.sdk']).decode('utf-8').strip())
398 'ro.build.version.codename']).decode('utf-8').strip()
402 ORDER = ['-n', '-p', '-i', '-o']
407 for opt in action.option_strings:
410 return result, action.option_strings[0].strip('-')
414 for action in sorted(parser._actions, key=arg_order):
417 opts = ', '.join('`' + x + '`' for x in action.option_strings)
427 …t...] environment variable can be used to pass proguard deobfuscation maps for different packages"…
430 "-i",
431 "--interval",
437 "-d",
438 "--duration",
443 # This flag is a no-op now. We never start heapprofd explicitly using system
446 "--no-start", help="Do not start heapprofd.", action='store_true')
448 "-p",
449 "--pid",
450 help="Comma-separated list of PIDs to "
454 "-n",
455 "--name",
456 help="Comma-separated list of process "
460 "-c",
461 "--continuous-dump",
466 "--heaps",
467 help="Comma-separated list of heaps to collect, e.g: libc.malloc,com.android.art. "
471 "--all-heaps",
475 "--no-android-tree-symbolization",
480 "--disable-selinux",
482 help="Disable SELinux enforcement for duration of "
485 "--no-versions",
489 "--no-running",
493 "--no-startup",
498 "--shmem-size",
505 "--block-client",
507 "client to wait for buffer space. Use with caution as "
512 "--block-client-timeout",
513 help="If --block-client is given, do not block any allocation for "
517 "--no-block-client",
522 "--idle-allocations",
528 "--dump-at-max",
533 "--disable-fork-teardown",
534 help="Do not tear down client in forks. This can be useful for programs "
538 "--simpleperf",
541 "only for heapprofd development.")
543 "--traceconv-binary", help="Path to local trace to text. For debugging.")
545 "--no-annotations",
550 "--print-config",
552 help="Print config instead of running. For debugging.")
554 "-o",
555 "--output",
560 "--print-options", action="store_true", help=argparse.SUPPRESS)
569 "FATAL: Both block-client and no-block-client given.", file=sys.stderr)
581 print("FATAL: shmem-size is not a multiple of 4096.", file=sys.stderr)
584 print("FATAL: shmem-size is less than 8192.", file=sys.stderr)
586 if args.shmem_size & (args.shmem_size - 1):
587 print("FATAL: shmem-size is not a power of two.", file=sys.stderr)
608 for pid in args.pid.split(','):
616 for name in args.name.split(','):
619 for heap in args.heaps.split(','):
649 print('If you are experiencing problems, please see the known issues for '
656 profile_device_path = '/data/misc/perfetto-traces/profile-' + UUID
659 'whoami']).decode('utf-8').strip()
660 profile_device_path = '/data/misc/perfetto-traces/profile-' + user
663 'perfetto --txt -c - -o ' + profile_device_path + ' -d')
667 'getenforce']).decode('utf-8').strip()
675 'adb', 'shell', 'mkdir -p /data/local/tmp/heapprofd_profile && '
677 '(nohup simpleperf record -g -p $(pidof heapprofd) 2>&1 &) '
698 ['adb', 'exec-out', perfetto_cmd.format(cfg=cfg)]).strip()
713 ['adb', 'shell', '[ -d /proc/{} ]'.format(perfetto_pid)], **NOOUT) == 0
716 print("Waiting for profiler shutdown...")
720 subprocess.call(['adb', 'shell', 'kill', '-INT', str(perfetto_pid)])
722 subprocess.check_call(['adb', 'shell', 'killall', '-INT', 'simpleperf'])
723 print("Waiting for simpleperf to exit.")
725 ['adb', 'shell', '[ -f /proc/$(pidof simpleperf)/exe ]'], **NOOUT) == 0:
732 # Wait for perfetto cmd to return.
735 ['adb', 'shell', '[ -d /proc/{} ]'.format(perfetto_pid)]) == 0
738 profile_host_path = os.path.join(profile_target, 'raw-trace')
765 trace_file = os.path.join(profile_target, 'raw-trace')
772 os.path.join(profile_target, 'raw-trace')
784 with open(os.path.join(profile_target, 'deobfuscation-packets'), 'w') as fd:
787 os.path.join(profile_target, 'raw-trace')
793 concat_files.append(os.path.join(profile_target, 'deobfuscation-packets'))
800 with open(os.path.join(profile_target, 'symbolized-trace'), 'wb') as out:
801 for fn in concat_files:
808 trace_file = os.path.join(profile_target, 'symbolized-trace')
811 ['--no-annotations'] if args.no_annotations else []) + [trace_file]
814 for word in traceconv_output.decode('utf-8').split():
815 if 'heap_profile-' in word:
826 for profile_file in profile_files:
830 if not sys.platform.startswith('win'):
832 ['gzip'] + [os.path.join(profile_target, x) for x in profile_files])
835 os.path.dirname(profile_target), "heap_profile-latest")
846 print("The raw-trace file can be viewed using https://ui.perfetto.dev.")
849 print("The two above are equivalent. The raw-trace contains the union of " +