mirror of
				https://github.com/go-delve/delve.git
				synced 2025-11-01 03:42:59 +08:00 
			
		
		
		
	Add additional information to how to filter goroutines
This commit is contained in:
		 Álex Sáez
					Álex Sáez
				
			
				
					committed by
					
						 Alessandro Arzilli
						Alessandro Arzilli
					
				
			
			
				
	
			
			
			 Alessandro Arzilli
						Alessandro Arzilli
					
				
			
						parent
						
							e24a7b1174
						
					
				
				
					commit
					5a159c2ef2
				
			| @ -400,8 +400,13 @@ To only display goroutines where the specified location contains (or does not co | ||||
| 	goroutines -without (userloc|curloc|goloc|startloc) expr | ||||
| 	goroutines -wo (userloc|curloc|goloc|startloc) expr | ||||
|  | ||||
| To only display goroutines that have (or do not have) the specified label key and value, use: | ||||
| 	Where: | ||||
| 	userloc: filter by the location of the topmost stackframe in user code | ||||
| 	curloc: filter by the location of the topmost stackframe (including frames inside private runtime functions) | ||||
| 	goloc: filter by the location of the go instruction that created the goroutine | ||||
| 	startloc: filter by the location of the start function | ||||
| 	 | ||||
| To only display goroutines that have (or do not have) the specified label key and value, use: | ||||
|  | ||||
| 	goroutines -with label key=value | ||||
| 	goroutines -without label key=value | ||||
| @ -426,6 +431,15 @@ GROUPING | ||||
|  | ||||
| 	goroutines -group (userloc|curloc|goloc|startloc|running|user) | ||||
|  | ||||
| 	Where: | ||||
| 	userloc: groups goroutines by the location of the topmost stackframe in user code | ||||
| 	curloc: groups goroutines by the location of the topmost stackframe | ||||
| 	goloc: groups goroutines by the location of the go instruction that created the goroutine | ||||
| 	startloc: groups goroutines by the location of the start function | ||||
| 	running: groups goroutines by weather they are running or not | ||||
| 	user: groups goroutines by weather they are user or runtime goroutines | ||||
|  | ||||
|  | ||||
| Groups goroutines by the given location, running status or user classification, up to 5 goroutines per group will be displayed as well as the total number of goroutines in the group. | ||||
|  | ||||
| 	goroutines -group label key | ||||
|  | ||||
| @ -250,8 +250,13 @@ To only display goroutines where the specified location contains (or does not co | ||||
| 	goroutines -without (userloc|curloc|goloc|startloc) expr | ||||
| 	goroutines -wo (userloc|curloc|goloc|startloc) expr | ||||
|  | ||||
| To only display goroutines that have (or do not have) the specified label key and value, use: | ||||
| 	Where: | ||||
| 	userloc: filter by the location of the topmost stackframe in user code | ||||
| 	curloc: filter by the location of the topmost stackframe (including frames inside private runtime functions) | ||||
| 	goloc: filter by the location of the go instruction that created the goroutine | ||||
| 	startloc: filter by the location of the start function | ||||
| 	 | ||||
| To only display goroutines that have (or do not have) the specified label key and value, use: | ||||
|  | ||||
| 	goroutines -with label key=value | ||||
| 	goroutines -without label key=value | ||||
| @ -276,6 +281,15 @@ GROUPING | ||||
|  | ||||
| 	goroutines -group (userloc|curloc|goloc|startloc|running|user) | ||||
|  | ||||
| 	Where: | ||||
| 	userloc: groups goroutines by the location of the topmost stackframe in user code | ||||
| 	curloc: groups goroutines by the location of the topmost stackframe | ||||
| 	goloc: groups goroutines by the location of the go instruction that created the goroutine | ||||
| 	startloc: groups goroutines by the location of the start function | ||||
| 	running: groups goroutines by weather they are running or not | ||||
| 	user: groups goroutines by weather they are user or runtime goroutines | ||||
|  | ||||
|  | ||||
| Groups goroutines by the given location, running status or user classification, up to 5 goroutines per group will be displayed as well as the total number of goroutines in the group. | ||||
|  | ||||
| 	goroutines -group label key | ||||
|  | ||||
		Reference in New Issue
	
	Block a user