Skip to content

Commit

Permalink
Add a javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
vrajat committed Jul 11, 2024
1 parent 3fe2633 commit eacfca6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ public Collection<? extends ThreadResourceTracker> getThreadResources() {
return _threadEntriesMap.values();
}

/**
* This function aggregates resource usage from all active threads and groups by queryId.
* It is inspired by {@link PerQueryCPUMemResourceUsageAccountant::aggregate}. The major difference is that
* it only reads from thread entries and does not update them.
* @return A map of query id, QueryResourceTracker.
*/
@Override
public Map<String, ? extends QueryResourceTracker> getQueryResources() {
HashMap<String, AggregatedStats> ret = new HashMap<>();
Expand Down

0 comments on commit eacfca6

Please sign in to comment.