Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: tools-webrtc/android/profiling/perf_setup.sh

Issue 2719033002: Minor fix in profiling script, part 2 (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 3 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
4 # 4 #
5 # Use of this source code is governed by a BSD-style license 5 # Use of this source code is governed by a BSD-style license
6 # that can be found in the LICENSE file in the root of the source 6 # that can be found in the LICENSE file in the root of the source
7 # tree. An additional intellectual property rights grant can be found 7 # tree. An additional intellectual property rights grant can be found
8 # in the file PATENTS. All contributing project authors may 8 # in the file PATENTS. All contributing project authors may
9 # be found in the AUTHORS file in the root of the source tree. 9 # be found in the AUTHORS file in the root of the source tree.
10 # 10 #
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 printf " perf_report_graph\n" 191 printf " perf_report_graph\n"
192 printf " perf_report_graph_callee\n" 192 printf " perf_report_graph_callee\n"
193 printf " perf_update\n" 193 printf " perf_update\n"
194 printf " perf_clean\n" 194 printf " perf_clean\n"
195 printf " flame_graph\n" 195 printf " flame_graph\n"
196 printf " plot_flame_graph\n" 196 printf " plot_flame_graph\n"
197 } 197 }
198 198
199 function cleanup() { 199 function cleanup() {
200 unset -f main 200 unset -f main
201 unset BUILD_DIR
202 } 201 }
203 202
204 # ----------------------------------------------------------------------------- 203 # -----------------------------------------------------------------------------
205 # Main methods to be used after sourcing the main script. 204 # Main methods to be used after sourcing the main script.
206 # ----------------------------------------------------------------------------- 205 # -----------------------------------------------------------------------------
207 206
208 # Call this method after the application as been rebuilt and installed on the 207 # Call this method after the application as been rebuilt and installed on the
209 # device to ensure that symbols are up-to-date. 208 # device to ensure that symbols are up-to-date.
210 function perf_update() { 209 function perf_update() {
211 copy_native_shared_library_to_symbol_cache 210 copy_native_shared_library_to_symbol_cache
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 460
462 cleanup 461 cleanup
463 462
464 return 0 463 return 0
465 } 464 }
466 465
467 # Only call main() if proper input parameter has been provided. 466 # Only call main() if proper input parameter has been provided.
468 if is_set $BUILD_DIR; then 467 if is_set $BUILD_DIR; then
469 main "$@" 468 main "$@"
470 fi 469 fi
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698