Skip to content

Commit

Permalink
修复时间采集判断的逻辑错误
Browse files Browse the repository at this point in the history
  • Loading branch information
丁宇 committed Jun 18, 2012
1 parent 1db58f6 commit beca8d1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/com/taobao/profile/Profiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@ public static void End(int methodId) {
return;
}
long useTime = endTime - frameData[2];
if (Manager.isNeedNanoTime() && useTime > 500000) {
frameData[2] = useTime;
thrData.profileData.push(frameData);
if (Manager.isNeedNanoTime()) {
if (useTime > 500000) {
frameData[2] = useTime;
thrData.profileData.push(frameData);
}
} else if (useTime > 1) {
frameData[2] = useTime;
thrData.profileData.push(frameData);
Expand Down

0 comments on commit beca8d1

Please sign in to comment.