Skip to content

Commit

Permalink
修复sampler分析的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
丁宇 committed Apr 27, 2012
1 parent 7e5e31d commit f954e73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Binary file modified dist/tprofiler.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ private void reader() {
String line = null;
while ((line = reader.readLine()) != null) {
if (line.startsWith("Thread\t")) {
Integer tmpCount = originalThreadMap.get(line);
String key = line.substring(0, line.lastIndexOf('\t'));
Integer tmpCount = originalThreadMap.get(key);
if (tmpCount == null) {
originalThreadMap.put(line, 1);
originalThreadMap.put(key, 1);
} else {
originalThreadMap.put(line, tmpCount.intValue() + 1);
originalThreadMap.put(key, tmpCount.intValue() + 1);
}
} else {
if (line.startsWith("com") || line.startsWith("org")) {
Expand Down

0 comments on commit f954e73

Please sign in to comment.