Skip to content

Commit

Permalink
Preparing for Blinky Config
Browse files Browse the repository at this point in the history
  • Loading branch information
VijayKrishna committed May 15, 2020
1 parent 0d17629 commit 4e110e1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
5 changes: 0 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.spideruci.analysis</groupId>
<artifactId>blinky</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<groupId>org.spideruci.analysis</groupId>
<artifactId>blinky-core</artifactId>
Expand Down
3 changes: 2 additions & 1 deletion resources/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ retransformInclusionList:
- org/w3c
- org/xml
# - sun/

# - java/util/Vector
# - java
# - sun
Expand All @@ -81,6 +80,8 @@ retransformInclusionList:
# - org/w3c
# - org/xml

profiler: 'org/spideruci/analysis/dynamic/profilers/CoverageTracker'

## FUTURE EXAMPLES (NOT YET TESTED; DO NOT UNCOMMENT):
# name: blinky
# number: !!int 1
Expand Down
4 changes: 3 additions & 1 deletion src/org/spideruci/analysis/dynamic/TraceLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import static org.spideruci.analysis.dynamic.Profiler.REAL_OUT;

import org.spideruci.analysis.dynamic.api.EmptyProfiler;
import org.spideruci.analysis.dynamic.api.IProfiler;
import org.spideruci.analysis.dynamic.profilers.TimeAndCountTracker;
import org.spideruci.analysis.statik.instrumentation.Config;
import org.spideruci.analysis.trace.EventBuilder;
import org.spideruci.analysis.trace.EventType;
import org.spideruci.analysis.trace.TraceEvent;
Expand All @@ -14,7 +16,7 @@ public class TraceLogger {
public static final int TIMESTAMP = 1;
public static final int CALLDEPTH = 2;

public static IProfiler profiler = new TimeAndCountTracker();
public static IProfiler profiler = Config.profiler;

private static long count = 0;

Expand Down
5 changes: 5 additions & 0 deletions src/org/spideruci/analysis/statik/instrumentation/Config.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
package org.spideruci.analysis.statik.instrumentation;

import org.spideruci.analysis.dynamic.api.EmptyProfiler;
import org.spideruci.analysis.dynamic.api.IProfiler;

public class Config {
public static int LINE_COUNT = 0;

public static String[] exclusionList;
public static String[] inclusionList;
public static String[] retransformInclusionList;
public static String[] retransformExclusionList;

public static IProfiler profiler = new EmptyProfiler(); // TODO: set to null so that the blinky-config has a change to override this

public static boolean checkInclusionList = false;
public static boolean forceCheckInclusionList = false;
Expand Down

0 comments on commit 4e110e1

Please sign in to comment.