mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-30 07:41:39 +00:00 
			
		
		
		
	Correct typos of the following word families: standard increase comments valgrind promiscuous editing libtonezone storage aggressive whitespace russellbryant consecutive peternixon ASTERISK-29714 Change-Id: I9cafbf41b579c9c0c84c81719d2c4f900beec245
		
			
				
	
	
		
			22 lines
		
	
	
		
			525 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			525 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| # compare_valgrind: diff two valgrind memory usage logs. Masks out PIDs,
 | |
| # addresses and such that should normally be different.
 | |
| #
 | |
| # Usage: ./compare_valgrind file1.log file2.log | less
 | |
| #
 | |
| # (Requires /bin/bash due to usage of '<()' )
 | |
| 
 | |
| log1="$1"
 | |
| log2="$2"
 | |
| 
 | |
| pipe_log() {
 | |
| 	sed \
 | |
| 		-e 's/^--[0-9]\+-- //' -e 's/^==[0-9]\+== //' "$1" \
 | |
| 		-e 's/ record [0-9]\+ of [0-9]\+$/ <snipped>/' \
 | |
| 		-e 's/^ Address 0x[0-9a-f]\+/ Address 0x<snipped>/' \
 | |
| 
 | |
| }
 | |
| 
 | |
| diff -u -L "$log1" <(pipe_log "$log1") -L "$log2" <(pipe_log "$log2")
 |