mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	profiler: add force rate and quantum to latency
Overrite the node.latency with their forced values when available. This will show the forced values in pw-top
This commit is contained in:
		
							parent
							
								
									d3f879e4ed
								
							
						
					
					
						commit
						db6b7f6848
					
				
					 1 changed files with 8 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -214,10 +214,17 @@ static void context_do_profile(void *data, struct pw_impl_node *node)
 | 
			
		|||
	spa_list_for_each(t, &node->rt.target_list, link) {
 | 
			
		||||
		struct pw_impl_node *n = t->node;
 | 
			
		||||
		struct pw_node_activation *na;
 | 
			
		||||
		struct spa_fraction latency;
 | 
			
		||||
 | 
			
		||||
		if (n == NULL || n == node)
 | 
			
		||||
			continue;
 | 
			
		||||
 | 
			
		||||
		latency = n->latency;
 | 
			
		||||
		if (n->force_quantum != 0)
 | 
			
		||||
			latency.num = n->force_quantum;
 | 
			
		||||
		if (n->force_rate != 0)
 | 
			
		||||
			latency.denom = n->force_rate;
 | 
			
		||||
 | 
			
		||||
		na = n->rt.activation;
 | 
			
		||||
		spa_pod_builder_prop(&b, SPA_PROFILER_followerBlock, 0);
 | 
			
		||||
		spa_pod_builder_add_struct(&b,
 | 
			
		||||
| 
						 | 
				
			
			@ -228,7 +235,7 @@ static void context_do_profile(void *data, struct pw_impl_node *node)
 | 
			
		|||
			SPA_POD_Long(na->awake_time),
 | 
			
		||||
			SPA_POD_Long(na->finish_time),
 | 
			
		||||
			SPA_POD_Int(na->status),
 | 
			
		||||
			SPA_POD_Fraction(&n->latency));
 | 
			
		||||
			SPA_POD_Fraction(&latency));
 | 
			
		||||
	}
 | 
			
		||||
	spa_pod_builder_pop(&b, &f[0]);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue