Skip to content

Commit

Permalink
Mention in profile that we are aquiring resources when doing so.
Browse files Browse the repository at this point in the history
  • Loading branch information
meisterT authored and copybara-github committed Jan 18, 2021
1 parent 003cfcd commit fa9fabb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ public ResourceHandle acquireResources(ActionExecutionMetadata owner, ResourceSe
Preconditions.checkState(
!threadHasResources(), "acquireResources with existing resource lock during %s", owner);

AutoProfiler p = profiled(owner.describe(), ProfilerTask.ACTION_LOCK);
AutoProfiler p =
profiled("Aquiring resources for: " + owner.describe(), ProfilerTask.ACTION_LOCK);
CountDownLatch latch = null;
try {
latch = acquire(resources);
Expand Down

0 comments on commit fa9fabb

Please sign in to comment.