|
@@ -1,5 +1,6 @@
|
|
|
package com.tzld.longarticle.recommend.server.service.recommend.filter;
|
|
|
|
|
|
+import com.tzld.longarticle.recommend.server.common.CostMonitor;
|
|
|
import com.tzld.longarticle.recommend.server.common.ThreadPoolFactory;
|
|
|
import com.tzld.longarticle.recommend.server.common.enums.recommend.RankStrategyEnum;
|
|
|
import com.tzld.longarticle.recommend.server.model.dto.Content;
|
|
@@ -44,7 +45,7 @@ public class FilterService {
|
|
|
long t1 = System.currentTimeMillis();
|
|
|
FilterResult ret = strategy.filter(param);
|
|
|
long t2 = System.currentTimeMillis();
|
|
|
- log.info("Filter {} cost: {}", strategy.getClass().getSimpleName(), t2 - t1);
|
|
|
+ CostMonitor.logCost("Filter", strategy.getClass().getSimpleName(), t2 - t1);
|
|
|
return ret;
|
|
|
} finally {
|
|
|
cdl.countDown();
|