parent
							
								
									819b7a120a
								
							
						
					
					
						commit
						b51da61dc4
					
				
				 6 changed files with 43 additions and 0 deletions
			
			
		@ -0,0 +1,7 @@ | 
				
			||||
trace_* | 
				
			||||
 | 
				
			||||
tracebox | 
				
			||||
trace_processor | 
				
			||||
 | 
				
			||||
perfetto/ | 
				
			||||
configs/ | 
				
			||||
@ -0,0 +1,11 @@ | 
				
			||||
#!/usr/bin/bash | 
				
			||||
 | 
				
			||||
if [ ! -d perfetto ]; then | 
				
			||||
  git clone https://android.googlesource.com/platform/external/perfetto/ | 
				
			||||
fi | 
				
			||||
 | 
				
			||||
cd perfetto | 
				
			||||
 | 
				
			||||
tools/install-build-deps --linux-arm | 
				
			||||
tools/gn gen --args='is_debug=false target_os="linux" target_cpu="arm64"' out/linux | 
				
			||||
tools/ninja -C out/linux tracebox traced traced_probes perfetto | 
				
			||||
@ -0,0 +1,6 @@ | 
				
			||||
#!/usr/bin/bash | 
				
			||||
 | 
				
			||||
DEST=tici:/data/openpilot/selfdrive/debug/profiling/perfetto | 
				
			||||
 | 
				
			||||
scp -r perfetto/out/linux/tracebox $DEST | 
				
			||||
scp -r perfetto/test/configs $DEST | 
				
			||||
@ -0,0 +1,8 @@ | 
				
			||||
#!/usr/bin/bash | 
				
			||||
 | 
				
			||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)" | 
				
			||||
cd $DIR | 
				
			||||
 | 
				
			||||
OUT=trace_ | 
				
			||||
sudo ./tracebox -o $OUT --txt -c configs/scheduling.cfg | 
				
			||||
sudo chown $USER:$USER $OUT | 
				
			||||
@ -0,0 +1,6 @@ | 
				
			||||
#!/usr/bin/bash | 
				
			||||
 | 
				
			||||
curl -LO https://get.perfetto.dev/trace_processor | 
				
			||||
chmod +x ./trace_processor | 
				
			||||
 | 
				
			||||
./trace_processor --httpd | 
				
			||||
@ -0,0 +1,5 @@ | 
				
			||||
#!/usr/bin/bash | 
				
			||||
 | 
				
			||||
DEST=tici:/data/openpilot/selfdrive/debug/profiling/perfetto | 
				
			||||
 | 
				
			||||
scp tici:/data/openpilot/selfdrive/debug/profiling/perfetto/trace_* . | 
				
			||||
					Loading…
					
					
				
		Reference in new issue