Skip to content

Commit

Permalink
cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
Mintas committed Mar 20, 2016
1 parent 36cbf38 commit b9a075f
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 12 deletions.
3 changes: 0 additions & 3 deletions src/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,5 @@ public static void main(String[] args) {
methodProfiles.forEach(mp -> System.out.println(mp.toString()));

}
//String test = "C:\\Users\\SBT-Kovalev-DA\\logg.log";
//String givenTest = "C:\\Users\\SBT-Kovalev-DA\\Downloads\\test\\testlog.log";

}
}
1 change: 0 additions & 1 deletion src/model/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ public String getMethodName() {
public long getInvocationId() {
return invocationId;
}

}
3 changes: 1 addition & 2 deletions src/model/MethodInvocation.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package model;

import java.util.Date;
import java.util.concurrent.TimeUnit;

/**
* Created by SBT-Kovalev-DA on 19.03.2016.
Expand All @@ -22,7 +21,7 @@ public static MethodInvocation ofEvents(Event start, Event end) {
}

private static long getDateDiff(Date start, Date end) {
return end.getTime() - start.getTime();//TimeUnit.MILLISECONDS.toMillis(diffInMillies);
return end.getTime() - start.getTime();
}


Expand Down
4 changes: 1 addition & 3 deletions src/service/LogEventParserImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@
import java.util.ArrayList;
import java.util.List;

import static java.lang.Integer.valueOf;

/**
* Created by SBT-Kovalev-DA on 19.03.2016.
*/
public class LogEventParserImpl implements EventParser {
private static final String SEPARATOR = " ";
private final DateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss,SSS");
private static final DateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss,SSS");

@Override
public List<Event> parseEvents(String fileName) {
Expand Down
2 changes: 0 additions & 2 deletions src/service/ProfileFromEventsExtractor.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package service;

import model.Event;
import model.MethodInvocation;
import model.MethodProfile;

import java.util.List;
import java.util.Map;

/**
* Created by SBT-Kovalev-DA on 19.03.2016.
Expand Down
1 change: 0 additions & 1 deletion src/service/ProfileFromEventsExtractorImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.toList;
import static java.util.stream.Collectors.toMap;
import static model.EventType.ENTRY;
import static model.EventType.EXIT;
import static model.MethodInvocation.ofEvents;
Expand Down

0 comments on commit b9a075f

Please sign in to comment.