aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zma...@apache.org
Subject aurora git commit: Expose stats on SlotSizeCounter runs.
Date Fri, 13 Jan 2017 19:44:10 GMT
Repository: aurora
Updated Branches:
  refs/heads/master 06a221fda -> 264527896


Expose stats on SlotSizeCounter runs.

Bugs closed: AURORA-1874

Reviewed at https://reviews.apache.org/r/55477/


Project: http://git-wip-us.apache.org/repos/asf/aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/26452789
Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/26452789
Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/26452789

Branch: refs/heads/master
Commit: 2645278961541acf30afda386cceb26ee495f1d8
Parents: 06a221f
Author: Mehrdad Nurolahzade <mehrdad@nurolahzade.com>
Authored: Fri Jan 13 11:43:56 2017 -0800
Committer: Zameer Manji <zmanji@apache.org>
Committed: Fri Jan 13 11:43:56 2017 -0800

----------------------------------------------------------------------
 .../java/org/apache/aurora/scheduler/stats/SlotSizeCounter.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora/blob/26452789/src/main/java/org/apache/aurora/scheduler/stats/SlotSizeCounter.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/aurora/scheduler/stats/SlotSizeCounter.java b/src/main/java/org/apache/aurora/scheduler/stats/SlotSizeCounter.java
index d0cc72f..57a5c39 100644
--- a/src/main/java/org/apache/aurora/scheduler/stats/SlotSizeCounter.java
+++ b/src/main/java/org/apache/aurora/scheduler/stats/SlotSizeCounter.java
@@ -27,6 +27,7 @@ import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableMultimap;
 import com.google.common.collect.Ordering;
 
+import org.apache.aurora.common.inject.TimedInterceptor.Timed;
 import org.apache.aurora.scheduler.resources.ResourceBag;
 
 import static java.util.Objects.requireNonNull;
@@ -163,6 +164,7 @@ class SlotSizeCounter implements Runnable {
     }
   }
 
+  @Timed("slot_size_counter_run")
   @Override
   public void run() {
     Iterable<MachineResource> slots = machineResourceProvider.get();


Mime
View raw message