diff --git a/component/CodeInspector/code_inspector/build.gradle b/component/CodeInspector/code_inspector/build.gradle
index 00a8ffffa0c9347f112e7a6b6e59cbf4d4cdb4a6..8e037391a1ac80fa95e3ad21a0b923063f339695 100644
--- a/component/CodeInspector/code_inspector/build.gradle
+++ b/component/CodeInspector/code_inspector/build.gradle
@@ -61,12 +61,15 @@ dependencies {
}
implementation 'org.xerial:sqlite-jdbc:3.45.1.0'
implementation 'org.mybatis:mybatis:3.5.13'
- implementation "org.slf4j:slf4j-api:1.7.32"
- implementation "org.slf4j:slf4j-log4j12:1.7.32"
+ implementation "org.slf4j:slf4j-api:1.7.36"
+ implementation "org.slf4j:slf4j-log4j12:1.7.36"
testImplementation 'org.mockito:mockito-core:4.11.0'
compileOnly 'org.projectlombok:lombok:1.18.28'
annotationProcessor 'org.projectlombok:lombok:1.18.28'
+ testCompileOnly 'org.projectlombok:lombok:1.18.28'
+ testAnnotationProcessor 'org.projectlombok:lombok:1.18.28'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
+ testImplementation 'org.junit.jupiter:junit-jupiter-params:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
}
diff --git a/component/CodeInspector/code_inspector/src/main/content/config/devkit_checkstyle.xml b/component/CodeInspector/code_inspector/src/main/content/config/devkit_checkstyle.xml
index aa6bd878b4486197222011aae873b5d521848e31..64eb61316a78c72f7ccf23c9bd10fc09a57f86c4 100644
--- a/component/CodeInspector/code_inspector/src/main/content/config/devkit_checkstyle.xml
+++ b/component/CodeInspector/code_inspector/src/main/content/config/devkit_checkstyle.xml
@@ -152,6 +152,7 @@
+
@@ -181,6 +182,7 @@
+
@@ -193,11 +195,11 @@
-
+
-
+
@@ -337,7 +339,7 @@
-
+
@@ -408,6 +410,7 @@
+
@@ -418,12 +421,15 @@
-
+
+
@@ -434,14 +440,14 @@
-
+
-
+
@@ -453,11 +459,12 @@
-
+
-
+
+
@@ -497,33 +504,28 @@
-
-
-
-
+
-
+
-
+
-
-
+
@@ -550,7 +552,7 @@
-
+
@@ -561,7 +563,7 @@
-
+
@@ -572,7 +574,7 @@
-
+
@@ -586,10 +588,10 @@
-
-
+
+
+
-
@@ -619,6 +621,7 @@
+
+ value="^/\*$\n^\s\*\sCopyright\s\([Cc]\)\s.*([0-9]{4}-)?[0-9]{4}.*\n^ \*/$\n\n^package\s.*"/>
diff --git a/component/CodeInspector/code_inspector/src/main/content/config/log4j.properties b/component/CodeInspector/code_inspector/src/main/content/config/log4j.properties
index b83e3c1b3ce7a7c5fbbfb52a7e66104287273f94..7098687986b3605dbfa7a2688e6154fb014ba996 100644
--- a/component/CodeInspector/code_inspector/src/main/content/config/log4j.properties
+++ b/component/CodeInspector/code_inspector/src/main/content/config/log4j.properties
@@ -1,7 +1,7 @@
#
# Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved.
#
-log4j.rootLogger=DEBUG,console,rollingFile
+log4j.rootLogger=DEBUG,rollingFile
# console
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.Threshold=WARN
diff --git a/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/CodeInspector.java b/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/CodeInspector.java
index f0a6774ca7b9f0460739e5c0cb8846ee758b3eee..a1c1062dab114ecd565e14e4bfcb8550330fbf58 100644
--- a/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/CodeInspector.java
+++ b/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/CodeInspector.java
@@ -14,9 +14,9 @@ import java.util.Properties;
public class CodeInspector {
public static void main(String[] args) {
+ final CliOptions cliOptions = new CliOptions();
+ final CommandLine commandLine = new CommandLine(cliOptions);
try {
- final CliOptions cliOptions = new CliOptions();
- final CommandLine commandLine = new CommandLine(cliOptions);
commandLine.setUsageHelpWidth(CliOptions.HELP_WIDTH);
commandLine.setCaseInsensitiveEnumValuesAllowed(true);
CommandLine.ParseResult parseResult = commandLine.parseArgs(args);
@@ -34,10 +34,10 @@ public class CodeInspector {
} catch (CommandLine.ParameterException ex) {
log.error("error", ex);
System.err.println(ex.getMessage());
- System.err.println("Usage: code-inspector [OPTIONS]... FILES...");
- System.err.println("Try 'code-inspector --help' for more information.");
+ commandLine.usage(System.err);
} catch (Exception ex) {
log.error("error", ex);
+ System.err.println(ex.getMessage());
}
}
}
diff --git a/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/entity/CliOptions.java b/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/entity/CliOptions.java
index 63ecf30b8e2fcefb06bfa23994a02d4e2b53d315..fc12f48b05d60af52936e863462fd766413b70db 100644
--- a/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/entity/CliOptions.java
+++ b/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/entity/CliOptions.java
@@ -4,12 +4,17 @@
package com.huawei.devkit.code.inspector.entity;
+import com.puppycrawl.tools.checkstyle.ConfigurationLoader;
+import com.puppycrawl.tools.checkstyle.PropertiesExpander;
+import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
import lombok.Data;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import java.io.File;
+import java.nio.file.Files;
import java.nio.file.Path;
+import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
@@ -21,7 +26,7 @@ import java.util.stream.Collectors;
* @since 2024-07-15
*/
@Data
-@Command(name = "code_inspector", version = "1.0.0", mixinStandardHelpOptions = true)
+@Command(name = "code-inspector", version = "1.0.0", mixinStandardHelpOptions = true)
public class CliOptions {
/**
* Width of CLI help option.
@@ -53,21 +58,16 @@ public class CliOptions {
/**
* List of file to validate.
*/
- @CommandLine.Parameters(arity = "1..*", description = "One or more source files to verify")
private List files;
/**
* Config file location.
*/
- @CommandLine.Option(names = "-c", description = "Specifies the location of the file that defines"
- + " the configuration modules. The location can either be a filesystem location"
- + ", or a name passed to the ClassLoader.getResource() method.")
private String configurationFile;
/**
* Output file location.
*/
- @CommandLine.Option(names = "-o", description = "Sets the output file. Defaults to stdout.")
private Path outputPath;
/**
@@ -78,45 +78,94 @@ public class CliOptions {
/**
* Output format.
*/
- @CommandLine.Option(names = "-f",
- description = "Specifies the output format. Valid values: "
- + "${COMPLETION-CANDIDATES} for XMLLogger, SarifLogger, CustomJsonFormatterLogger,"
- + "and DefaultLogger respectively. Defaults to ${DEFAULT-VALUE}.")
+ @CommandLine.Option(names = "-f", description = "Specifies the output format. Valid values: "
+ + "${COMPLETION-CANDIDATES}. Defaults to ${DEFAULT-VALUE}.At the same time, it will be recorded to "
+ + "the sqlite database in the config directory.")
private OutputStyle format = DEFAULT_OUTPUT_FORMAT;
- /**
- * Option that allows users to specify a list of paths to exclude.
- */
+
@CommandLine.Option(names = {"-e", "--exclude"},
- description = "Directory/file to exclude from CodeInspector. The path can be the "
- + "full, absolute path, or relative to the current path. Multiple "
- + "excludes are allowed.")
+ description = "Directory/file to exclude from CodeInspector. The path can be the "
+ + "full, absolute path, or relative to the current path. Multiple "
+ + "excludes are allowed.")
private List exclude = new ArrayList<>();
- /**
- * Option that allows users to specify a regex of paths to exclude.
- */
+
@CommandLine.Option(names = {"-x", "--exclude-regexp"},
- description = "Directory/file pattern to exclude from CodeInspector. Multiple "
- + "excludes are allowed.")
+ description = "Directory/file pattern to exclude from CodeInspector. Multiple "
+ + "excludes are allowed.")
private List excludeRegex = new ArrayList<>();
+ @CommandLine.Spec
+ private CommandLine.Model.CommandSpec spec;
+
/**
- * Switch whether to execute ignored modules or not.
+ * 当配置规则的属性severity为ignore时,是否还执行。默认不执行
*/
private boolean executeIgnoredModules;
+ @CommandLine.Parameters(arity = "1..*", description = "One or more source files to verify.")
+ public void setFiles(List files) {
+ for (File file : files) {
+ if (!file.exists() || !file.canRead()) {
+ throw new CommandLine.ParameterException(spec.commandLine(),
+ String.format("%s: the file does not exist or the current user " +
+ "does not have read permissions to the file", file.getPath()));
+ }
+ }
+ this.files = files;
+ }
+
+ @CommandLine.Option(names = "-o", description = "Sets the output file. Defaults to stdout.")
+ public void setOutputPath(Path outputPath) {
+ Path parentPath = outputPath.getParent();
+ if (parentPath == null) {
+ if (outputPath.isAbsolute()) {
+ throw new CommandLine.ParameterException(spec.commandLine(),
+ "The output file cannot be the root director");
+ }
+ } else {
+ boolean exists = Files.exists(parentPath);
+ boolean permission = Files.isExecutable(parentPath)
+ && Files.isWritable(parentPath) && Files.isReadable(parentPath);
+ if (!exists || !permission) {
+ throw new CommandLine.ParameterException(spec.commandLine(),
+ "The output parent director does not exist or the current user " +
+ "does not have read/write/execute permissions to the output parent director !");
+ }
+ }
+ this.outputPath = outputPath;
+ }
+
+ @CommandLine.Option(names = "-c", description = "Specifies the location of the file that defines"
+ + " the configuration module. By default, the devkit_checkstyle.xml in the config directory is used.")
+ public void setConfigurationFile(String configurationFile) {
+ Path configuration = Paths.get(configurationFile);
+ if (!Files.exists(configuration) || Files.isDirectory(configuration) || !Files.isReadable(configuration)) {
+ throw new CommandLine.ParameterException(spec.commandLine(), "The configuration file does not exist " +
+ "or the current user does not have read permissions to the configuration file !");
+ }
+
+ try {
+ ConfigurationLoader.loadConfiguration(
+ configurationFile, new PropertiesExpander(System.getProperties()));
+ } catch (CheckstyleException e) {
+ throw new CommandLine.ParameterException(spec.commandLine(), "The configuration file is not formatted correctly!");
+ }
+ this.configurationFile = configurationFile;
+ }
+
/**
- * Gets the list of exclusions provided through the command line arguments.
+ * 合并exclude和excludeRegex
*
* @return List of exclusion patterns.
*/
public List getExclusions() {
final List result = exclude.stream()
- .map(File::getAbsolutePath)
- .map(Pattern::quote)
- .map(pattern -> Pattern.compile("^" + pattern + "$"))
- .collect(Collectors.toCollection(ArrayList::new));
+ .map(File::getAbsolutePath)
+ .map(Pattern::quote)
+ .map(pattern -> Pattern.compile("^" + pattern + "$"))
+ .collect(Collectors.toCollection(ArrayList::new));
result.addAll(excludeRegex);
return result;
}
diff --git a/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/entity/OutputStyle.java b/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/entity/OutputStyle.java
index 3130558698ad3e27380640e1022911bdb6bcd3a5..909e940dbe894591e36853cba49d89fdbdc53441 100644
--- a/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/entity/OutputStyle.java
+++ b/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/entity/OutputStyle.java
@@ -7,7 +7,6 @@ package com.huawei.devkit.code.inspector.entity;
import com.huawei.devkit.code.inspector.listener.CustomJsonFormatterLogger;
import com.puppycrawl.tools.checkstyle.AbstractAutomaticBean;
import com.puppycrawl.tools.checkstyle.DefaultLogger;
-import com.puppycrawl.tools.checkstyle.XMLLogger;
import com.puppycrawl.tools.checkstyle.api.AuditListener;
import java.io.IOException;
@@ -20,10 +19,6 @@ import java.util.Locale;
* @since 2024-07-15
*/
public enum OutputStyle {
- /**
- * XML output format.
- */
- XML,
/**
* Json output format
*/
@@ -41,13 +36,10 @@ public enum OutputStyle {
* @return a new AuditListener for this OutputFormat
* @throws IOException if there is any IO exception during logger initialization
*/
- public AuditListener createListener(
- OutputStream out,
- AbstractAutomaticBean.OutputStreamOptions options) throws IOException {
+ public AuditListener createListener(OutputStream out,
+ AbstractAutomaticBean.OutputStreamOptions options) throws IOException {
final AuditListener result;
- if (this == XML) {
- result = new XMLLogger(out, options);
- } else if (this == JSON) {
+ if (this == JSON) {
result = new CustomJsonFormatterLogger(out, options);
} else {
result = new DefaultLogger(out, options);
diff --git a/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/listener/CustomJsonFormatterLogger.java b/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/listener/CustomJsonFormatterLogger.java
index e65175d1f24adf3d2eeaab362e7d977703a0bb4c..dbf4a1a5c66bd1853ecd258101fe1b2078171923 100644
--- a/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/listener/CustomJsonFormatterLogger.java
+++ b/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/listener/CustomJsonFormatterLogger.java
@@ -9,6 +9,7 @@ import com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions
import com.puppycrawl.tools.checkstyle.SarifLogger;
import com.puppycrawl.tools.checkstyle.api.AuditEvent;
import com.puppycrawl.tools.checkstyle.api.AuditListener;
+import com.puppycrawl.tools.checkstyle.api.SeverityLevel;
import lombok.extern.slf4j.Slf4j;
import java.io.IOException;
@@ -103,13 +104,13 @@ public class CustomJsonFormatterLogger implements AuditListener {
closeStream = outputStreamOptions == OutputStreamOptions.CLOSE;
report = PropertiesUtils.readResource("templates/CustomReport.template");
resultLineColumn =
- PropertiesUtils.readResource("templates/ResultLineColumn.template");
+ PropertiesUtils.readResource("templates/ResultLineColumn.template");
resultLineOnly =
- PropertiesUtils.readResource("templates/ResultLineOnly.template");
+ PropertiesUtils.readResource("templates/ResultLineOnly.template");
resultFileOnly =
- PropertiesUtils.readResource("templates/ResultFileOnly.template");
+ PropertiesUtils.readResource("templates/ResultFileOnly.template");
resultErrorOnly =
- PropertiesUtils.readResource("templates/ResultErrorOnly.template");
+ PropertiesUtils.readResource("templates/ResultErrorOnly.template");
}
@@ -142,24 +143,27 @@ public class CustomJsonFormatterLogger implements AuditListener {
@Override
public void addError(AuditEvent event) {
+ if (SeverityLevel.IGNORE == event.getSeverityLevel()) {
+ return;
+ }
if (event.getColumn() > 0) {
results.add(resultLineColumn
- .replace(SEVERITY_LEVEL_PLACEHOLDER, event.getSeverityLevel().getName())
- .replace(URI_PLACEHOLDER, event.getFileName())
- .replace(COLUMN_PLACEHOLDER, Integer.toString(event.getColumn()))
- .replace(LINE_PLACEHOLDER, Integer.toString(event.getLine()))
- .replace(MESSAGE_PLACEHOLDER, SarifLogger.escape(event.getMessage()))
- .replace(RULE_ID_PLACEHOLDER,
- event.getModuleId() != null ? event.getModuleId() : event.getViolation().getKey())
+ .replace(SEVERITY_LEVEL_PLACEHOLDER, event.getSeverityLevel().getName())
+ .replace(URI_PLACEHOLDER, event.getFileName())
+ .replace(COLUMN_PLACEHOLDER, Integer.toString(event.getColumn()))
+ .replace(LINE_PLACEHOLDER, Integer.toString(event.getLine()))
+ .replace(MESSAGE_PLACEHOLDER, SarifLogger.escape(event.getMessage()))
+ .replace(RULE_ID_PLACEHOLDER,
+ event.getModuleId() != null ? event.getModuleId() : event.getViolation().getKey())
);
} else {
results.add(resultLineOnly
- .replace(SEVERITY_LEVEL_PLACEHOLDER, event.getSeverityLevel().getName())
- .replace(URI_PLACEHOLDER, event.getFileName())
- .replace(LINE_PLACEHOLDER, Integer.toString(event.getLine()))
- .replace(MESSAGE_PLACEHOLDER, SarifLogger.escape(event.getMessage()))
- .replace(RULE_ID_PLACEHOLDER,
- event.getModuleId() != null ? event.getModuleId() : event.getViolation().getKey())
+ .replace(SEVERITY_LEVEL_PLACEHOLDER, event.getSeverityLevel().getName())
+ .replace(URI_PLACEHOLDER, event.getFileName())
+ .replace(LINE_PLACEHOLDER, Integer.toString(event.getLine()))
+ .replace(MESSAGE_PLACEHOLDER, SarifLogger.escape(event.getMessage()))
+ .replace(RULE_ID_PLACEHOLDER,
+ event.getModuleId() != null ? event.getModuleId() : event.getViolation().getKey())
);
}
}
@@ -171,14 +175,14 @@ public class CustomJsonFormatterLogger implements AuditListener {
throwable.printStackTrace(printer);
if (event.getFileName() == null) {
results.add(resultErrorOnly
- .replace(SEVERITY_LEVEL_PLACEHOLDER, event.getSeverityLevel().getName())
- .replace(MESSAGE_PLACEHOLDER, SarifLogger.escape(stringWriter.toString()))
+ .replace(SEVERITY_LEVEL_PLACEHOLDER, event.getSeverityLevel().getName())
+ .replace(MESSAGE_PLACEHOLDER, SarifLogger.escape(stringWriter.toString()))
);
} else {
results.add(resultFileOnly
- .replace(SEVERITY_LEVEL_PLACEHOLDER, event.getSeverityLevel().getName())
- .replace(URI_PLACEHOLDER, event.getFileName())
- .replace(MESSAGE_PLACEHOLDER, SarifLogger.escape(stringWriter.toString()))
+ .replace(SEVERITY_LEVEL_PLACEHOLDER, event.getSeverityLevel().getName())
+ .replace(URI_PLACEHOLDER, event.getFileName())
+ .replace(MESSAGE_PLACEHOLDER, SarifLogger.escape(stringWriter.toString()))
);
}
}
diff --git a/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/listener/DataBaseLogger.java b/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/listener/DataBaseLogger.java
index 0382b164bdf07f56c24ce622c0087e182d9dc716..7f005ce530621c14ec6987cc24fe3d80efc4ae8c 100644
--- a/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/listener/DataBaseLogger.java
+++ b/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/listener/DataBaseLogger.java
@@ -48,7 +48,7 @@ public class DataBaseLogger implements AuditListener {
@Override
public void auditFinished(AuditEvent event) {
Map> collected = this.infoList.stream()
- .collect(Collectors.groupingBy(RuleViolationInfo::getFilePath));
+ .collect(Collectors.groupingBy(RuleViolationInfo::getFilePath));
for (Map.Entry> entry : collected.entrySet()) {
this.filledLine(entry.getKey(), entry.getValue());
}
@@ -74,11 +74,14 @@ public class DataBaseLogger implements AuditListener {
@Override
public void addError(AuditEvent event) {
+ if (SeverityLevel.IGNORE == event.getSeverityLevel()) {
+ return;
+ }
RuleViolationInfo ruleViolation = RuleViolationInfo.builder().filePath(event.getFileName())
- .lineno(event.getLine()).time(this.time).filePathHash(event.getFileName().hashCode())
- .message(event.getMessage()).ruleId(event.getViolation().getModuleId())
- .mergeId(this.mergeId).shielded(false).commitRequestToShield(false)
- .level(SeverityLevel.ERROR == event.getSeverityLevel() ? 1 : 0).build();
+ .lineno(event.getLine()).time(this.time).filePathHash(event.getFileName().hashCode())
+ .message(event.getMessage()).ruleId(event.getViolation().getModuleId())
+ .mergeId(this.mergeId).shielded(false).commitRequestToShield(false)
+ .level(SeverityLevel.ERROR == event.getSeverityLevel() ? 1 : 0).build();
this.infoList.add(ruleViolation);
}
diff --git a/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/wrappers/CheckStyleWrapper.java b/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/wrappers/CheckStyleWrapper.java
index d811d1a19c89898b5e86f6481c183a8505612184..d52f5a2d7ca20090fc3ce14c34556c73ea3603d5 100644
--- a/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/wrappers/CheckStyleWrapper.java
+++ b/component/CodeInspector/code_inspector/src/main/java/com/huawei/devkit/code/inspector/wrappers/CheckStyleWrapper.java
@@ -63,19 +63,16 @@ public class CheckStyleWrapper {
*
* @throws IOException if there is a problem with files access
**/
- public static void checkStyle(CliOptions cliOptions) throws IOException {
+ public static void checkStyle(CliOptions cliOptions) throws IOException, CheckstyleException {
int errorCounter = 0;
try {
final List filesToProcess = getFilesToProcess(cliOptions);
errorCounter = runCheckstyle(cliOptions, filesToProcess);
- } catch (CheckstyleException ex) {
- errorCounter = 1;
- log.error(ex.getMessage(), ex);
} finally {
if (errorCounter > 0) {
final LocalizedMessage errorCounterViolation = new LocalizedMessage(
- Definitions.CHECKSTYLE_BUNDLE, Main.class,
- ERROR_COUNTER, String.valueOf(errorCounter));
+ Definitions.CHECKSTYLE_BUNDLE, Main.class,
+ ERROR_COUNTER, String.valueOf(errorCounter));
log.error(errorCounterViolation.getMessage());
}
}
@@ -87,12 +84,15 @@ public class CheckStyleWrapper {
* @param options the user-specified options
* @return list of files to process
*/
- private static List getFilesToProcess(CliOptions options) {
+ private static List getFilesToProcess(CliOptions options) throws IOException {
final List patternsToExclude = options.getExclusions();
final List result = new LinkedList<>();
for (File file : options.getFiles()) {
- result.addAll(listFiles(file, patternsToExclude));
+ if (file.exists()) {
+ File real = file.getCanonicalFile();
+ result.addAll(listFiles(real, patternsToExclude));
+ }
}
return result;
}
@@ -160,7 +160,7 @@ public class CheckStyleWrapper {
* @throws CheckstyleException when properties file could not be loaded
*/
private static int runCheckstyle(CliOptions options, List filesToProcess)
- throws CheckstyleException, IOException {
+ throws CheckstyleException, IOException {
final Properties props;
if (options.getPropertiesFile() == null) {
@@ -171,8 +171,8 @@ public class CheckStyleWrapper {
// create a configuration
final ThreadModeSettings multiThreadModeSettings =
- new ThreadModeSettings(CliOptions.CHECKER_THREADS_NUMBER,
- CliOptions.TREE_WALKER_THREADS_NUMBER);
+ new ThreadModeSettings(CliOptions.CHECKER_THREADS_NUMBER,
+ CliOptions.TREE_WALKER_THREADS_NUMBER);
final ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions;
if (options.isExecuteIgnoredModules()) {
@@ -182,8 +182,8 @@ public class CheckStyleWrapper {
}
final Configuration config = ConfigurationLoader.loadConfiguration(
- options.getConfigurationFile(), new PropertiesExpander(props),
- ignoredModulesOptions, multiThreadModeSettings);
+ options.getConfigurationFile(), new PropertiesExpander(props),
+ ignoredModulesOptions, multiThreadModeSettings);
// create RootModule object and run it
final int errorCounter;
@@ -215,15 +215,15 @@ public class CheckStyleWrapper {
* @throws CheckstyleException when could not load properties file
*/
private static Properties loadProperties(File file)
- throws CheckstyleException {
+ throws CheckstyleException {
final Properties properties = new Properties();
try (InputStream stream = Files.newInputStream(file.toPath())) {
properties.load(stream);
} catch (final IOException ex) {
final LocalizedMessage loadPropertiesExceptionMessage = new LocalizedMessage(
- Definitions.CHECKSTYLE_BUNDLE, CheckStyleWrapper.class,
- LOAD_PROPERTIES_EXCEPTION, file.getAbsolutePath());
+ Definitions.CHECKSTYLE_BUNDLE, CheckStyleWrapper.class,
+ LOAD_PROPERTIES_EXCEPTION, file.getAbsolutePath());
throw new CheckstyleException(loadPropertiesExceptionMessage.getMessage(), ex);
}
@@ -241,9 +241,9 @@ public class CheckStyleWrapper {
* @throws CheckstyleException if no module can be instantiated from name
*/
private static RootModule getRootModule(String name, ClassLoader moduleClassLoader)
- throws CheckstyleException {
+ throws CheckstyleException {
final ModuleFactory factory = new PackageObjectFactory(
- Checker.class.getPackage().getName(), moduleClassLoader);
+ Checker.class.getPackage().getName(), moduleClassLoader);
return (RootModule) factory.createModule(name);
}
@@ -259,10 +259,10 @@ public class CheckStyleWrapper {
* @throws IOException when provided output location is not found
*/
private static AuditListener createListener(OutputStyle format, Path outputLocation)
- throws IOException {
+ throws IOException {
final OutputStream out = getOutputStream(outputLocation);
final AbstractAutomaticBean.OutputStreamOptions closeOutputStreamOption =
- getOutputStreamOptions(outputLocation);
+ getOutputStreamOptions(outputLocation);
return format.createListener(out, closeOutputStreamOption);
}
diff --git a/component/CodeInspector/code_inspector/src/main/resources/config.properties b/component/CodeInspector/code_inspector/src/main/resources/config.properties
index 74074368b8f5ce4f9a903d3adbd09b7dc6701cd2..c881449a4f7fe460495f7f00f003330480d48cc0 100644
--- a/component/CodeInspector/code_inspector/src/main/resources/config.properties
+++ b/component/CodeInspector/code_inspector/src/main/resources/config.properties
@@ -1,4 +1,2 @@
-#
-#mode=product
mode=dev
root.dir=src/main/content
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/AnnotationsTest.java b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/AnnotationsTest.java
index a15936475e0dc9e03df5ac521dd9def1bbe7d498..08d3fdb9636c526772701d547202701b2a78d7ed 100644
--- a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/AnnotationsTest.java
+++ b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/AnnotationsTest.java
@@ -1,9 +1,8 @@
package com.huawei.devkit.code.inspector;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-import java.util.Objects;
+import com.huawei.devkit.code.inspector.utils.TestUtil;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
/**
* AnnotationsTest
@@ -11,25 +10,9 @@ import java.util.Objects;
* @since 2024-07-18
*/
public class AnnotationsTest {
- @Test
- void testAnnotationLocation() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/annotations/AnnotationLocationCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/annotations/AnnotationLocation.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testAnnotationLocation.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testSuppressWarnings() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/annotations/SuppressWarningsCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/annotations/SuppressWarnings.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testAnnotationLocation.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
+ @ParameterizedTest
+ @ValueSource(strings = {"AnnotationLocation", "SuppressWarnings"})
+ void testAnnotations(String rule) {
+ TestUtil.execute("annotations", rule);
}
}
diff --git a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/BlockCheckTest.java b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/BlockCheckTest.java
new file mode 100644
index 0000000000000000000000000000000000000000..66623a1cbda753b699a2273994d30b8b069cd0ae
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/BlockCheckTest.java
@@ -0,0 +1,34 @@
+package com.huawei.devkit.code.inspector;
+
+import com.huawei.devkit.code.inspector.utils.TestUtil;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.CsvSource;
+import org.junit.jupiter.params.provider.ValueSource;
+
+import java.util.Objects;
+
+/**
+ * AnnotationsTest
+ *
+ * @since 2024-07-18
+ */
+public class BlockCheckTest {
+ @ParameterizedTest
+ @ValueSource(strings = {"LeftCurly", "AvoidNestedBlocks", "EmptyBlock", "NeedBraces"})
+ void testBlockChecks(String rule) {
+ TestUtil.execute("block_checks", rule);
+ }
+
+ @ParameterizedTest
+ @CsvSource(value = {"RightCurly, RightCurlyAlone", "RightCurly, RightCurlySame"})
+ void testRightCurly(String module, String caseName) {
+ String root = System.getProperty("user.dir");
+ String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
+ .getResource("case/block_checks/" + caseName + "Case.java")).getPath();
+ String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
+ .getResource("single_rules/block_checks/" + module + ".xml")).getPath();
+ String[] args = new String[]{"-c", configPath, "-o", root + "/test" + caseName + ".out", "-f", "json", filePath};
+ Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
+ }
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/ClassDesignTest.java b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/ClassDesignTest.java
new file mode 100644
index 0000000000000000000000000000000000000000..624e451f1a3a5567238af80c4902d79ecd511fde
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/ClassDesignTest.java
@@ -0,0 +1,18 @@
+package com.huawei.devkit.code.inspector;
+
+import com.huawei.devkit.code.inspector.utils.TestUtil;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
+
+/**
+ * ClassDesignTest
+ *
+ * @since 2024-07-20
+ */
+public class ClassDesignTest {
+ @ParameterizedTest
+ @ValueSource(strings = {"OneTopLevelClass", "ThrowsCount", "VisibilityModifier"})
+ void testClassDesign(String rule) {
+ TestUtil.execute("class_design", rule);
+ }
+}
diff --git a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/CodingTest.java b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/CodingTest.java
new file mode 100644
index 0000000000000000000000000000000000000000..dd9dcf03244783cd3404f34d05e8f41b0e5ae88e
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/CodingTest.java
@@ -0,0 +1,32 @@
+package com.huawei.devkit.code.inspector;
+
+import com.huawei.devkit.code.inspector.utils.TestUtil;
+import lombok.extern.slf4j.Slf4j;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
+
+/**
+ * CodingTest
+ *
+ * @since 2024-07-20
+ */
+@Slf4j
+public class CodingTest {
+
+ @ParameterizedTest
+ @ValueSource(strings = {
+ "ConstructorsDeclarationGrouping", "CovariantEquals", "DeclarationOrder", "DefaultComesLast",
+ "EmptyStatement", "EqualsAvoidNull", "EqualsHashCode", "FallThrough", "HiddenField",
+ "IllegalCatch", "IllegalInstantiation", "IllegalThrows", "InnerAssignment", "MagicNumber",
+ "MissingSwitchDefault", "ModifiedControlVariable", "MultipleStringLiterals", "MultipleVariableDeclarations",
+ "NestedForDepth", "NestedIfDepth", "NestedTryDepth", "NoClone", "NoFinalizer",
+ "OneStatementPerLine", "OverloadMethodsDeclarationOrder", "ParameterAssignment", "SimplifyBooleanExpression",
+ "SimplifyBooleanReturn", "StringLiteralEquality", "SuperClone", "UnnecessarySemicolonAfterOuterTypeDeclaration",
+ "UnnecessarySemicolonAfterTypeMemberDeclaration", "UnnecessarySemicolonInTryWithResources",
+ "UnusedLocalVariable", "VariableDeclarationUsageDistance",
+ })
+ void testCoding(String rule) {
+ log.info(rule);
+ TestUtil.execute("coding", rule);
+ }
+}
diff --git a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/HeadersAndImportsTest.java b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/HeadersAndImportsTest.java
index a4f3a82ac9d9e895fc91daa5c270246cc25f4d13..f5203ee9ef66985bb27b127728e7d60c764611b3 100644
--- a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/HeadersAndImportsTest.java
+++ b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/HeadersAndImportsTest.java
@@ -1,64 +1,17 @@
package com.huawei.devkit.code.inspector;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-import java.util.Objects;
+import com.huawei.devkit.code.inspector.utils.TestUtil;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
public class HeadersAndImportsTest {
- @Test
- void testRegexpHeader() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/headers_and_imports/RegexpHeaderCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/headers_and_imports/RegexpHeader.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testRegexpHeader.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testAvoidStarImport() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/headers_and_imports/AvoidStarImportCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/headers_and_imports/AvoidStarImport.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testAvoidStarImport.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testCustomImportOrderRules() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/headers_and_imports/CustomImportOrderCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/headers_and_imports/CustomImportOrder.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testCustomImportOrderRules.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testUnusedImports() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/headers_and_imports/UnusedImportsCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/headers_and_imports/UnusedImports.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testUnusedImports.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testRedundantImport() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/headers_and_imports/RedundantImportCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/headers_and_imports/RedundantImport.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testRedundantImport.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
+ @ParameterizedTest
+ @ValueSource(strings = {
+ "RegexpHeader", "AvoidStarImport", "CustomImportOrder",
+ "UnusedImports", "RedundantImport"
+ })
+ void testHeadersAndImports(String rule) {
+ TestUtil.execute("headers_and_imports", rule);
}
}
diff --git a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/JavadocTest.java b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/JavadocTest.java
index 18d0aa5cc4ff3341b0f96e0d0610b56857a7efb0..b39c181ac00f2d7d547c40732c8c2b7b13f168f4 100644
--- a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/JavadocTest.java
+++ b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/JavadocTest.java
@@ -4,10 +4,9 @@
package com.huawei.devkit.code.inspector;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-import java.util.Objects;
+import com.huawei.devkit.code.inspector.utils.TestUtil;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
/**
* JavadocTest
@@ -15,182 +14,16 @@ import java.util.Objects;
* @since 2024-07-16
*/
public class JavadocTest {
- @Test
- void testAtclauseOrder() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/javadoc/AtclauseOrderCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/javadoc/AtclauseOrder.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testAtclauseOrder.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testInvalidJavadocPosition() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/javadoc/InvalidJavadocPositionCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/javadoc/InvalidJavadocPosition.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testInvalidJavadocPosition.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testJavadocBlockTagLocation() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/javadoc/JavadocBlockTagLocationCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/javadoc/JavadocBlockTagLocation.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testJavadocBlockTagLocation.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testJavadocContentLocation() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/javadoc/JavadocContentLocationCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/javadoc/JavadocContentLocation.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testJavadocContentLocation.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testJavadocMethod() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/javadoc/JavadocMethodCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/javadoc/JavadocMethod.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testJavadocMethod.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testJavadocMissingLeadingAsterisk() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/javadoc/JavadocMissingLeadingAsteriskCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/javadoc/JavadocMissingLeadingAsterisk.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testJavadocMissingLeadingAsterisk.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testJavadocMissingWhitespaceAfterAsterisk() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/javadoc/JavadocMissingWhitespaceAfterAsteriskCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/javadoc/JavadocMissingWhitespaceAfterAsterisk.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testJavadocMissingWhitespaceAfterAsterisk.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testJavadocParagraph() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/javadoc/JavadocParagraphCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/javadoc/JavadocParagraph.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testJavadocParagraph.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testJavadocTagContinuationIndentation() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/javadoc/JavadocTagContinuationIndentationCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/javadoc/JavadocTagContinuationIndentation.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testJavadocTagContinuationIndentation.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
+ @ParameterizedTest
+ @ValueSource(strings = {
+ "AtclauseOrder", "InvalidJavadocPosition", "JavadocBlockTagLocation", "JavadocContentLocation",
+ "JavadocMethod", "JavadocMissingLeadingAsterisk", "JavadocMissingWhitespaceAfterAsterisk",
+ "JavadocParagraph", "JavadocTagContinuationIndentation", "JavadocVariable", "MissingJavadocMethod",
+ "MissingJavadocType", "NonEmptyAtclauseDescription", "RequireEmptyLineBeforeBlockTagGroup",
+ "SingleLineJavadoc", "WriteTag"
+ })
+ void testMetrics(String rule) {
+ TestUtil.execute("javadoc", rule);
}
-
- @Test
- void testJavadocVariable() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/javadoc/JavadocVariableCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/javadoc/JavadocVariable.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testJavadocVariable.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testMissingJavadocMethod() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/javadoc/MissingJavadocMethodCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/javadoc/MissingJavadocMethod.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testMissingJavadocMethod.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
-
- @Test
- void testMissingJavadocType() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/javadoc/MissingJavadocTypeCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/javadoc/MissingJavadocType.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testMissingJavadocType.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testNonEmptyAtclauseDescription() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/javadoc/NonEmptyAtclauseDescriptionCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/javadoc/NonEmptyAtclauseDescription.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testNonEmptyAtclauseDescription.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testRequireEmptyLineBeforeBlockTagGroup() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/javadoc/RequireEmptyLineBeforeBlockTagGroupCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/javadoc/RequireEmptyLineBeforeBlockTagGroup.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testRequireEmptyLineBeforeBlockTagGroup.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testSingleLineJavadoc() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/javadoc/SingleLineJavadocCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/javadoc/SingleLineJavadoc.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testSingleLineJavadoc.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testWriteTag() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/javadoc/WriteTagCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/javadoc/WriteTag.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testWriteTag.out", "-f", "json", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
}
diff --git a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/MetricsTest.java b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/MetricsTest.java
index 11347169597774577e49737d6ad4b411080779c2..4ccfbcca0dede3380f637f0e8f21e065b3c9e537 100644
--- a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/MetricsTest.java
+++ b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/MetricsTest.java
@@ -1,75 +1,17 @@
package com.huawei.devkit.code.inspector;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-import java.util.Objects;
+import com.huawei.devkit.code.inspector.utils.TestUtil;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
public class MetricsTest {
- @Test
- void testBooleanExpressionComplexity() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/metrics/BooleanExpressionComplexityCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/metrics/BooleanExpressionComplexity.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testBooleanExpressionComplexity.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testClassDataAbstractionCouplingCase() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/metrics/ClassDataAbstractionCouplingCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/metrics/ClassDataAbstractionCoupling.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testClassDataAbstractionCoupling.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
-
- @Test
- void testClassFanOutComplexityCase() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/metrics/ClassFanOutComplexityCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/metrics/ClassFanOutComplexity.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testClassFanOutComplexity.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testCyclomaticComplexityCase() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/metrics/CyclomaticComplexityCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/metrics/CyclomaticComplexity.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testCyclomaticComplexity.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testJavaNCSSCase() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/metrics/JavaNCSSCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/metrics/JavaNCSS.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testJavaNCSSCase.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
- @Test
- void testNPathComplexity() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/metrics/NPathComplexityCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/metrics/NPathComplexity.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testNPathComplexity.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
+ @ParameterizedTest
+ @ValueSource(strings = {
+ "BooleanExpressionComplexity", "ClassDataAbstractionCoupling", "ClassFanOutComplexity", "CyclomaticComplexity",
+ "JavaNCSS", "NPathComplexity"
+ })
+ void testMetrics(String rule) {
+ TestUtil.execute("metrics", rule);
}
}
diff --git a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/MiscellaneousTest.java b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/MiscellaneousTest.java
index 9096945fbf332e2715599208dbdd5ce319b37d5c..6742226a64b1bfb4917d1debd68d22274587ac77 100644
--- a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/MiscellaneousTest.java
+++ b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/MiscellaneousTest.java
@@ -1,121 +1,18 @@
package com.huawei.devkit.code.inspector;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-import java.util.Objects;
+import com.huawei.devkit.code.inspector.utils.TestUtil;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
public class MiscellaneousTest {
- @Test
- void testArrayTypeStyle() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/miscellaneous/ArrayTypeStyleCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/miscellaneous/ArrayTypeStyle.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testArrayTypeStyle.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testAvoidEscapedUnicodeCharacters() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/miscellaneous/AvoidEscapedUnicodeCharactersCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/miscellaneous/AvoidEscapedUnicodeCharacters.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testAvoidEscapedUnicodeCharacters.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testCommentsIndentation() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/miscellaneous/CommentsIndentationCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/miscellaneous/CommentsIndentation.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testCommentsIndentation.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testDescendantToken() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/miscellaneous/DescendantTokenCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/miscellaneous/DescendantToken.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testDescendantToken.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testIndentation() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/miscellaneous/IndentationCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/miscellaneous/Indentation.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testIndentation.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testNewlineAtEndOfFile() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/miscellaneous/NewlineAtEndOfFileCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/miscellaneous/NewlineAtEndOfFile.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testNewlineAtEndOfFile.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testNoCodeInFile() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/miscellaneous/NoCodeInFileCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/miscellaneous/NoCodeInFile.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testNoCodeInFile.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testOuterTypeFilename() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/miscellaneous/OuterTypeFilenameCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/miscellaneous/OuterTypeFilename.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testOuterTypeFilename.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
+ @ParameterizedTest
+ @ValueSource(strings = {
+ "ArrayTypeStyle", "AvoidEscapedUnicodeCharacters", "CommentsIndentation", "DescendantToken",
+ "Indentation", "NoCodeInFile", "OuterTypeFilename", "TodoComment", "UpperEll"
+ })
+ void testMiscellaneous(String rule) {
+ TestUtil.execute("miscellaneous", rule);
}
- @Test
- void testTodoComment() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/miscellaneous/TodoCommentCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/miscellaneous/TodoComment.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testTodoComment.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testUpperEll() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/miscellaneous/UpperEllCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/miscellaneous/UpperEll.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testUpperEll.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
-
}
diff --git a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/ModifiersTest.java b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/ModifiersTest.java
index 364dd91ad5da6dad0fe28d0311237d90d7ef5448..42d9cd702a8f1291a37cadbe0d30a15db361fee9 100644
--- a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/ModifiersTest.java
+++ b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/ModifiersTest.java
@@ -1,30 +1,11 @@
package com.huawei.devkit.code.inspector;
-import org.junit.jupiter.api.Assertions;
+import com.huawei.devkit.code.inspector.utils.TestUtil;
import org.junit.jupiter.api.Test;
-import java.util.Objects;
-
public class ModifiersTest {
@Test
void testModifierOrder() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/modifiers/ModifierOrderCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/modifiers/ModifierOrder.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testModifierOrder.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testRedundantModifier() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/modifiers/RedundantModifierCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/modifiers/RedundantModifier.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testRedundantModifier.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
+ TestUtil.execute("modifiers", "ModifierOrder");
}
}
diff --git a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/NamingConventionsTest.java b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/NamingConventionsTest.java
index 28ea2bd5b6626e6810f82c7807c1b69e2e5735f6..e6df0b6eb4514c193c2ea8a22227497f79730a01 100644
--- a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/NamingConventionsTest.java
+++ b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/NamingConventionsTest.java
@@ -1,198 +1,37 @@
package com.huawei.devkit.code.inspector;
+import com.huawei.devkit.code.inspector.utils.TestUtil;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
import java.util.Objects;
public class NamingConventionsTest {
- @Test
- void testRedundantModifier() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/naming_conventions/AbbreviationAsWordInNameCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/naming_conventions/AbbreviationAsWordInName.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testAbbreviationAsWordInName.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testClassTypeParameterName() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/naming_conventions/ClassTypeParameterNameCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/naming_conventions/ClassTypeParameterName.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testClassTypeParameterName.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testConstantName() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/naming_conventions/ConstantNameCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/naming_conventions/ConstantName.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testConstantName.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testIllegalIdentifierName() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/naming_conventions/IllegalIdentifierNameCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/naming_conventions/IllegalIdentifierName.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testIllegalIdentifierName.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testInterfaceTypeParameterName() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/naming_conventions/InterfaceTypeParameterNameCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/naming_conventions/InterfaceTypeParameterName.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testInterfaceTypeParameterName.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testLocalFinalVariableName() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/naming_conventions/LocalFinalVariableNameCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/naming_conventions/LocalFinalVariableName.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testLocalFinalVariableName.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testLocalVariableName() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/naming_conventions/LocalVariableNameCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/naming_conventions/LocalVariableName.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testLocalVariableName.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testMemberName() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/naming_conventions/MemberNameCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/naming_conventions/MemberName.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testMemberName.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testMethodName() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/naming_conventions/MethodNameCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/naming_conventions/MethodName.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testMethodName.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testMethodTypeParameterName() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/naming_conventions/MethodTypeParameterNameCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/naming_conventions/MethodTypeParameterName.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testMethodTypeParameterName.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
+ @ParameterizedTest
+ @ValueSource(strings = {
+ "AbbreviationAsWordInName", "ClassTypeParameterName", "ConstantName", "IllegalIdentifierName",
+ "InterfaceTypeParameterName", "LambdaParameterName", "LocalFinalVariableName", "LocalVariableName",
+ "MemberName", "MethodName", "MethodTypeParameterName", "ParameterName",
+ "PatternVariableName", "RecordComponentName", "RecordTypeParameterName", "StaticVariableName",
+ "AbbreviationAsWordInName", "ClassTypeParameterName", "ConstantName", "IllegalIdentifierName",
+ "TypeName"
+ })
+ void testNamingConventions(String rule) {
+ TestUtil.execute("naming_conventions", rule);
}
-
+
@Test
void testPackageName() {
String root = System.getProperty("user.dir");
String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/naming_conventions/PackageNameCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/naming_conventions/PackageName.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testPackageName.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testParameterName() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/naming_conventions/ParameterNameCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/naming_conventions/ParameterName.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testParameterName.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testPatternVariableName() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/naming_conventions/PatternVariableNameCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/naming_conventions/PatternVariableName.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testPatternVariableName.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testRecordComponentName() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/naming_conventions/RecordComponentNameCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/naming_conventions/RecordComponentName.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testRecordComponentName.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testRecordTypeParameterName() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/naming_conventions/RecordTypeParameterNameCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/naming_conventions/RecordTypeParameterName.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testRecordTypeParameterName.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testStaticVariableName() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/naming_conventions/StaticVariableNameCase.java")).getPath();
- String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/naming_conventions/StaticVariableName.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testStaticVariableName.out", "-f", "sarif", filePath};
- Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
- }
-
- @Test
- void testTypeName() {
- String root = System.getProperty("user.dir");
- String filePath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("case/naming_conventions/TypeNameCase.java")).getPath();
+ .getResource("case/naming_conventions/package_name")).getPath();
String configPath = Objects.requireNonNull(this.getClass().getClassLoader()
- .getResource("single_rules/naming_conventions/TypeName.xml")).getPath();
- String[] args = new String[]{"-c", configPath, "-o", root + "/testTypeName.out", "-f", "sarif", filePath};
+ .getResource("single_rules/naming_conventions/PackageName.xml")).getPath();
+ String[] args = new String[]{"-c", configPath, "-o", root + "/testPackageName.out", "-f", "json", filePath};
Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
}
-
}
diff --git a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/SizeViolationsTest.java b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/SizeViolationsTest.java
new file mode 100644
index 0000000000000000000000000000000000000000..131bc8c4e7c1ff78182f0ad2f07cf8501c153aa1
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/SizeViolationsTest.java
@@ -0,0 +1,18 @@
+package com.huawei.devkit.code.inspector;
+
+import com.huawei.devkit.code.inspector.utils.TestUtil;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
+
+/**
+ * SizeViolationsTest
+ *
+ * @since 2024-07-22
+ */
+public class SizeViolationsTest {
+ @ParameterizedTest
+ @ValueSource(strings = {"FileLength", "LineLength", "MethodLength", "ParameterNumber"})
+ void testSizeViolations(String rule) {
+ TestUtil.execute("size_violations", rule);
+ }
+}
diff --git a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/WhitespacesTest.java b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/WhitespacesTest.java
new file mode 100644
index 0000000000000000000000000000000000000000..664e45f649636801232b3467c2cfd3f007544a39
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/WhitespacesTest.java
@@ -0,0 +1,22 @@
+package com.huawei.devkit.code.inspector;
+
+import com.huawei.devkit.code.inspector.utils.TestUtil;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
+
+/**
+ * WhitespacesTest
+ *
+ * @since 2024-07-22
+ */
+public class WhitespacesTest {
+ @ParameterizedTest
+ @ValueSource(strings = {"EmptyForInitializerPad", "EmptyForIteratorPad", "EmptyLineSeparator", "FileTabCharacter",
+ "GenericWhitespace", "MethodParamPad", "NoLineWrap", "NoWhitespaceAfter", "NoWhitespaceBefore",
+ "NoWhitespaceBeforeCaseDefaultColon", "OperatorWrap", "ParenPad", "SeparatorWrap",
+ "SingleSpaceSeparator", "TypecastParenPad", "WhitespaceAfter", "WhitespaceAround"
+ })
+ void testWhitespaces(String rule) {
+ TestUtil.execute("whitespaces", rule);
+ }
+}
diff --git a/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/utils/TestUtil.java b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/utils/TestUtil.java
new file mode 100644
index 0000000000000000000000000000000000000000..f34f0bfc16876d12e3049d23dcf5f726db28717b
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/java/com/huawei/devkit/code/inspector/utils/TestUtil.java
@@ -0,0 +1,23 @@
+package com.huawei.devkit.code.inspector.utils;
+
+import com.huawei.devkit.code.inspector.CodeInspector;
+import org.junit.jupiter.api.Assertions;
+
+import java.util.Objects;
+
+/**
+ * TestUtil
+ *
+ * @since 2024-07-23
+ */
+public class TestUtil {
+ public static void execute(String module, String rule) {
+ String root = System.getProperty("user.dir");
+ String filePath = Objects.requireNonNull(TestUtil.class.getClassLoader()
+ .getResource("case/" + module + "/" + rule + "Case.java")).getPath();
+ String configPath = Objects.requireNonNull(TestUtil.class.getClassLoader()
+ .getResource("single_rules/" + module + "/" + rule + ".xml")).getPath();
+ String[] args = new String[]{"-c", configPath, "-o", root + "/test" + rule + ".out", "-f", "json", filePath};
+ Assertions.assertDoesNotThrow(() -> CodeInspector.main(args));
+ }
+}
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/block_checks/EmptyCatchBlockCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/block_checks/EmptyBlockCase.java
similarity index 95%
rename from component/CodeInspector/code_inspector/src/test/resources/case/block_checks/EmptyCatchBlockCase.java
rename to component/CodeInspector/code_inspector/src/test/resources/case/block_checks/EmptyBlockCase.java
index 90e5084afdf19a69a51112e062d48a8e018f75b8..25f9f7e30a7620ec8f3ef7e79476375952d17f81 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/block_checks/EmptyCatchBlockCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/block_checks/EmptyBlockCase.java
@@ -1,4 +1,4 @@
-public class EmptyCatchBlockCase {
+public class EmptyBlockCase {
private void exampleMethod1() {
try {
throw new RuntimeException();
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/block_checks/LeftCurlyCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/block_checks/LeftCurlyCase.java
index da78ff3ad526557dd9a8a9f98a9cd02b222cad46..d6d8e22f568c4720756838e5fbefacd3e0889b7a 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/block_checks/LeftCurlyCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/block_checks/LeftCurlyCase.java
@@ -1,7 +1,28 @@
+import java.util.ArrayList;
+import java.util.List;
+
class LeftCurlyCase
{ // violation, ''{' at column 1 should be on the previous line.'
private interface TestInterface
{ // violation, ''{' at column 3 should be on the previous line.'
+
+ }
+
+ public void test(int index){
+ String[] arr = {"a","b","c"}; // no violation
+ String[] arr2 = new String[]{"a","b","c"}; // no violation
+ List numbers = new ArrayList<>();
+ numbers.forEach((n) -> System.out.println(n));
+ numbers.forEach((n) -> { System.out.println(n); }); // violation
+ numbers.forEach((n) ->
+ { System.out.println(n); // violation
+ });
+ switch (index) {
+ case 0:{break;} // violation
+ default:
+ {break;} // violation
+ }
+
}
private
@@ -9,7 +30,7 @@ class LeftCurlyCase
MyClass { // OK
}
- enum Colors {RED, // OK
+ enum Colors {RED, // violation
BLUE,
GREEN;
}
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/block_checks/RightCurlyAloneCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/block_checks/RightCurlyAloneCase.java
index 4706b9c45a83e89fa11349de08badf6de888718e..dd5bcbad06d965da7b5a79b136e04b108bf94614 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/block_checks/RightCurlyAloneCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/block_checks/RightCurlyAloneCase.java
@@ -10,7 +10,17 @@ public class RightCurlyAloneCase {
boolean foo = false;
if (foo) {
bar();
- } else { bar(); }
+ }
+ if (foo) {
+ bar();
+ } else {
+ bar(); }
+ // violation above, 'should be alone on a line.'
+ if (foo) {
+ bar();
+ } else {
+ bar();
+ } bar();
// violation above, 'should be alone on a line.'
if (foo) {
@@ -21,10 +31,13 @@ public class RightCurlyAloneCase {
try {
bar();
- } catch (Exception e) {
+ } catch (Exception e) { bar(); }
// OK above because config is set to token METHOD_DEF and LITERAL_ELSE
- bar();
- }
+
+
+ finally {
+
+ } // violation
}
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/class_design/ThrowsCountCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/class_design/ThrowsCountCase.java
index 16a0d8325ec0e494857d9937322b51acd3ec8381..0f01ed0921f032eb71d7c70c2663728a11d76e44 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/class_design/ThrowsCountCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/class_design/ThrowsCountCase.java
@@ -7,7 +7,7 @@ class Test {
ArrayIndexOutOfBoundsException,
StringIndexOutOfBoundsException,
IllegalStateException,
- NullPointerException { // violation, max allowed is 4
+ NullPointerException { // ok, max allowed is 4
// body
}
@@ -16,11 +16,11 @@ class Test {
// body
}
- private void privateFunc() throws CloneNotSupportedException,
+ private void privateFunc() throws CloneNotSupportedException,NullPointerException,
ClassNotFoundException,
IllegalAccessException,
ArithmeticException,
- ClassCastException { // ok, private methods are ignored
+ ClassCastException { // violation,
// body
}
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/class_design/VisibilityModifierCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/class_design/VisibilityModifierCase.java
index 7b35bfe7e1a739b2217f52362ca1c0db99a943e9..ec259b895b0a4c5c716c63ccdd0215d0ef48c4b0 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/class_design/VisibilityModifierCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/class_design/VisibilityModifierCase.java
@@ -16,7 +16,10 @@ class Example4 {
// violation below, public immutable fields are not allowed 'must be private'
public final int field5 = 42;
- // violation below, public immutable fields are not allowed 'must be private'
+ public static int field10 = 42; // violation
+
+ protected static int field11 = 42; // ok
+
public final java.lang.String notes = null;
// violation below, HashSet is mutable 'must be private'
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/coding/CovariantEqualsCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/coding/CovariantEqualsCase.java
index ad191b510545e89c7a666da2eb36af91ea25d952..ca6e65e4d82a0f36749631dda6c76af8892f6a8b 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/coding/CovariantEqualsCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/coding/CovariantEqualsCase.java
@@ -16,4 +16,8 @@ class CovariantEqualsCase01 {
public boolean equals(Object i) {
return false;
}
+}
+
+class CovariantEqualsCase01 {
+
}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/coding/DeclarationOrderCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/coding/DeclarationOrderCase.java
index b9ec34055f1f4653b71563920e1b49e01abe53cd..e213517a6d807dd9633295ec7d716b7af1db44c5 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/coding/DeclarationOrderCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/coding/DeclarationOrderCase.java
@@ -8,6 +8,9 @@ public class DeclarationOrderCase {
this.a = 0;
}
+ private void foo2() {
+ // This method does nothing
+ }
public void foo() {
// This method does nothing
}
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/coding/EmptyStatementCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/coding/EmptyStatementCase.java
index cebd0585ad8c625a855a2296116956ffb9a26064..31779477b9dd7cd48dee526fd2befcfdfc999314 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/coding/EmptyStatementCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/coding/EmptyStatementCase.java
@@ -8,6 +8,9 @@ public class EmptyStatementCase {
if(i > 3); // violation
i++;
for (i = 0; i < 5; i++); // violation
+ for (i = 0; i < 5; i++){
+
+ } // no violation
i++;
while (i > 10)
i++;
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/coding/EqualsAvoidNullCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/coding/EqualsAvoidNullCase.java
index 4d33dc4394ce3af1aea2dfb00a4a8d3d1ecae403..95cb10786b1b917a02b73624b686380e2f532c67 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/coding/EqualsAvoidNullCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/coding/EqualsAvoidNullCase.java
@@ -2,8 +2,12 @@ public class EqualsAvoidNullCase {
public void test(){
String nullString = null;
nullString.equals("My_Sweet_String"); // violation
+ nullString == "My_Sweet_String"; // OK
"My_Sweet_String".equals(nullString); // OK
nullString.equalsIgnoreCase("My_Sweet_String"); // violation
"My_Sweet_String".equalsIgnoreCase(nullString); // OK
+ String notEmpty = "notEmpty";
+ nullString.equals(notEmpty); // OK
+ nullString == notEmpty;
}
}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/coding/IllegalThrowsCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/coding/IllegalThrowsCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..134d2a5a0cbf78d670a7a13fe60d06a7be0f26a0
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/coding/IllegalThrowsCase.java
@@ -0,0 +1,9 @@
+public class IllegalThrowsCase {
+ public void func1() throws RuntimeException {} // violation
+ public void func2() throws Exception {} // ok
+ public void func3() throws Error {} // violation
+ public void func4() throws Throwable {} // violation
+ public void func5() throws NullPointerException {} // ok
+ @Override
+ public void toString() throws Error {} // ok
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/coding/InnerAssignment.java b/component/CodeInspector/code_inspector/src/test/resources/case/coding/InnerAssignmentCase.java
similarity index 94%
rename from component/CodeInspector/code_inspector/src/test/resources/case/coding/InnerAssignment.java
rename to component/CodeInspector/code_inspector/src/test/resources/case/coding/InnerAssignmentCase.java
index ed3629eac7c26a94002a291eff0f326babce70d8..21e044a373d8c62dd9d1de348d86b88a0cec85f4 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/coding/InnerAssignment.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/coding/InnerAssignmentCase.java
@@ -1,5 +1,6 @@
public class InnerAssignment {
public void test(){
+ int a = b = 1;
String line;
while ((line = bufferedReader.readLine()) != null) { // OK
// process the line
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/coding/MultipleStringLiterals.java b/component/CodeInspector/code_inspector/src/test/resources/case/coding/MultipleStringLiteralsCase.java
similarity index 84%
rename from component/CodeInspector/code_inspector/src/test/resources/case/coding/MultipleStringLiterals.java
rename to component/CodeInspector/code_inspector/src/test/resources/case/coding/MultipleStringLiteralsCase.java
index 4bd5b224e8201af90b08236b9228da3ac849696c..aabb18b6336c26e342df753f150dfb4a55238954 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/coding/MultipleStringLiterals.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/coding/MultipleStringLiteralsCase.java
@@ -10,6 +10,6 @@ public class MultipleStringLiterals {
String a2 = "StringContents"; // OK, two occurrences are allowed
String a3 = "DoubleString" + "DoubleString"; // OK, two occurrences are allowed
String a4 = "SingleString"; // OK
- String a5 = ", " + ", " + ", "; // violation, three occurrences are NOT allowed
+ String a5 = ", " + ", " + ", " + ", "; // violation, four occurrences are NOT allowed
}
}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/coding/MultipleVariableDeclarations.java b/component/CodeInspector/code_inspector/src/test/resources/case/coding/MultipleVariableDeclarationsCase.java
similarity index 100%
rename from component/CodeInspector/code_inspector/src/test/resources/case/coding/MultipleVariableDeclarations.java
rename to component/CodeInspector/code_inspector/src/test/resources/case/coding/MultipleVariableDeclarationsCase.java
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/coding/NestedForDepth.java b/component/CodeInspector/code_inspector/src/test/resources/case/coding/NestedForDepthCase.java
similarity index 63%
rename from component/CodeInspector/code_inspector/src/test/resources/case/coding/NestedForDepth.java
rename to component/CodeInspector/code_inspector/src/test/resources/case/coding/NestedForDepthCase.java
index 3b97aa2e63f69442f5e47d6f7248aa60ff7fe1f8..cae5547e8d97e935474ae69aaf4154f3fcb64b18 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/coding/NestedForDepth.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/coding/NestedForDepthCase.java
@@ -2,7 +2,9 @@ public class NestedForDepth {
public void test(){
for(int i=0; i<10; i++) {
for(int j=0; j 0) {
- System.out.println("a > 0");
- // a < 0
+ System.out.println("a > 0"); // sjdkfks
+ // a < 0
} else if (a < 0) {
System.out.println("a < 0");
}
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/DescendantTokenCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/DescendantTokenCase.java
index dcec0e8d8e0e190aa328e42a8f76c73834469954..9d3e7b5a0787d55285623b7631d1368e12a4970b 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/DescendantTokenCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/DescendantTokenCase.java
@@ -3,12 +3,43 @@ public class DescendantTokenCase {
public void foo1() {
int x = 1;
int y = 2;
- switch (x) { // ok
+ int optimistic = 2;
+ switch (y) {
case 1:
- System.out.println("xyz");
+ switch (y) {
+ case 2:
+ switch (y) {
+ case 2:
+
+ break;
+ }
+ break;
+ }
break;
}
- switch (y) { // violation
+ if (optimistic) {
+ message = "half full";
+ } else {
+ if (optimistic) {
+ message = "half full";
+ } else {
+ if (optimistic) {
+ message = "half full";
+ }
+ else {
+ switch (y) { // violation
+ case 2:
+ System.out.println("xyz");
+ break;
+ }
+ message = "half empty";
+ }
+ message = "half empty";
+ }
+ message = "half empty";
+ }
+
+ switch (y) {
case 1:
switch (y) {
case 2:
@@ -17,6 +48,11 @@ public class DescendantTokenCase {
}
break;
}
+ switch (x) { // ok
+ case 1:
+ System.out.println("xyz");
+ break;
+ }
}
public void foo2() {
@@ -31,13 +67,13 @@ public class DescendantTokenCase {
try {
// Some code
} catch (Exception e) {
- try { // violation
+ try { //
// Some code
} catch (Exception ex) {
// handle exception
}
} finally {
- try { // violation
+ try { //
// Some code
} catch (Exception e) {
// handle exception
@@ -53,7 +89,7 @@ public class DescendantTokenCase {
}
int j = 0;
- for (; j != array.length; ) { // violation
+ for (; j != array.length; ) { //
System.out.println(j);
j++;
}
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/IndentationCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/IndentationCase.java
index 73ca71117214628c1160c49ad6a1f8cc84588024..c66ffd06663deb75ce5a67830e319ca4a88b46ab 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/IndentationCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/IndentationCase.java
@@ -1,6 +1,7 @@
public class IndentationCase {
String field; // basicOffset
- int[] arr = { // basicOffset
+ int[] arr = {
+ 67, 34, // basicOffset
5, // arrayInitIndent
6 }; // arrayInitIndent
void bar() throws Exception // basicOffset
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/NewlineAtEndOfFileCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/NewlineAtEndOfFileCase.java
deleted file mode 100644
index 809e69e044902451429064f5bafe8100d65fb8c1..0000000000000000000000000000000000000000
--- a/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/NewlineAtEndOfFileCase.java
+++ /dev/null
@@ -1,3 +0,0 @@
-public class NewlineAtEndOfFileCase { //
-//
-} // no below it is violation
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/NoCodeInFileCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/NoCodeInFileCase.java
index e6fc693afe3a8a657d21370798da2f7cf8e8496c..32e30fda143c749b9595db1a3dd3e07352affd1c 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/NoCodeInFileCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/NoCodeInFileCase.java
@@ -1,3 +1,3 @@
//public class NoCodeInFileCase {
-// signal
+//// signal
//}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/TodoCommentCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/TodoCommentCase.java
index 6a9810810003ed214cd3909689b9325bbf9a5393..01455e35dcfaf54de8b6bb01645076c89a13ddf7 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/TodoCommentCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/miscellaneous/TodoCommentCase.java
@@ -3,8 +3,8 @@ public class TodoCommentCase {
int x;
public void test() {
i++; // TODO: do differently in future // violation
- i++; // todo: do differently in future
- i=i/x; // FIXME: handle x = 0 case
+ i++; // todo: do differently in future // violation
+ i=i/x; // FIXME: handle x = 0 case // violation
i=i/x; // FIX : handle x = 0 case
}
}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/modifiers/RedundantModifierCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/modifiers/RedundantModifierCase.java
deleted file mode 100644
index 24c23ea42d80b50efa05194a27a793fabc24f0a2..0000000000000000000000000000000000000000
--- a/component/CodeInspector/code_inspector/src/test/resources/case/modifiers/RedundantModifierCase.java
+++ /dev/null
@@ -1,18 +0,0 @@
-public class RedundantModifierCase {
-
-}
-
-class PackagePrivateClass {
- public PackagePrivateClass() {} // violation expected
-}
-
-public enum EnumClass {
- FIELD_1,
- FIELD_2 {
- @Override
- public final void method1() {} // violation expected
- };
-
- public void method1() {}
- public final void method2() {} // no violation expected
-}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/ClassTypeParameterNameCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/ClassTypeParameterNameCase.java
index 0888ea6c478be4427f2ac0aac427bb979d4993ad..c36ac446879acd40956e8a00fb27971601a639bc 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/ClassTypeParameterNameCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/ClassTypeParameterNameCase.java
@@ -1,4 +1,6 @@
public class ClassTypeParameterNameCase {
class MyClass1 {}
class MyClass2 {} // violation
+
+ class MyClass2 {}
}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/IllegalIdentifierNameCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/IllegalIdentifierNameCase.java
index 39cc40383f05b910af0ddfcca7fb87839790b19b..e98c50c6bc2f28b9c67577544f34eccdd9c1aeb7 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/IllegalIdentifierNameCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/IllegalIdentifierNameCase.java
@@ -1,3 +1,6 @@
public class IllegalIdentifierNameCase {
Integer _ = 4; // violation, 'Name '_' must match pattern'
+ Integer _hello = 4;
+ Integer record = 4;
+ Integer _record = 4;
}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/InterfaceTypeParameterNameCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/InterfaceTypeParameterNameCase.java
index e835153e96afd9bc10bc3ddf92e633572333a5e1..54c14a9952abc18cc0fffd9763c76be7728845e1 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/InterfaceTypeParameterNameCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/InterfaceTypeParameterNameCase.java
@@ -3,13 +3,13 @@ public class InterfaceTypeParameterNameCase {
interface FirstInterface {
}
- interface SecondInterface {
+ interface SecondInterface { //violation
}
- interface ThirdInterface {
- } // violation
+ interface ThirdInterface { // violation
+ }
interface ThirdInterface {
- } // violation
+ }
}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/LambdaParameterNameCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/LambdaParameterNameCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..9b251e4396e19ccbd7edc0b7deb03eb470e23a94
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/LambdaParameterNameCase.java
@@ -0,0 +1,5 @@
+class LambdaParameterNameCase {
+ Function function1 = s -> s.toLowerCase();
+ Function function2 =
+ S -> S.toLowerCase(); // violation
+}
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/PackageNameCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/PackageNameCase.java
deleted file mode 100644
index e6061ef63e1e36310ac5ff2a3d509bb1c1172d75..0000000000000000000000000000000000000000
--- a/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/PackageNameCase.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com; // OK
-package COM; // violation, name 'COM' must match pattern '^[a-z]+(\.[a-zA-Z_]\w*)*$'
-package com.checkstyle.checks; // OK
-package com.A.checkstyle.checks; // OK
-package com.checkstyle1.checks; // OK
-package com.checkSTYLE.checks; // OK
-package com._checkstyle.checks_; // OK
-
-public class PackageNameCase {
-
-}
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/RecordComponentNameCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/RecordComponentNameCase.java
index 6b4c7c58d2b9c0315c4d702874064cfc67e5512b..e99477fa3db7f49c5ac1fd976df6763046cde41b 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/RecordComponentNameCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/RecordComponentNameCase.java
@@ -6,6 +6,5 @@ public class RecordComponentNameCase {
// should match the regular expression "^[a-z][a-zA-Z0-9]*$"
record MyRecord1(String value, int other) {} // OK
record MyRecord2(String... strings) {} // OK
- record MyRecord3(double myNumber) {} // violation, the record component name
- // should match the regular expression "^[a-z]+$"
+ record MyRecord3(double myNumber) {} // Ok
}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/RecordTypeParameterNameCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/RecordTypeParameterNameCase.java
index 700b693951545fbcd8dd1602c72290957afa8a0a..b38539c7df07da0f4fb29aca408580d707d3a78d 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/RecordTypeParameterNameCase.java
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/RecordTypeParameterNameCase.java
@@ -1,6 +1,5 @@
public class RecordTypeParameterNameCase {
- record MyRecord1 {} // OK
- record MyRecord2 {} // OK
- record MyRecord3 {} // violation, the record type parameter
- // name should match the regular expression "^[a-zA-Z]$"
+ record MyRecord1() {} // OK
+ record MyRecord2() {} // violation
+ record MyRecord3() {} // violation, the record type parameter
}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/package_name/PackageNameCase01.java b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/package_name/PackageNameCase01.java
new file mode 100644
index 0000000000000000000000000000000000000000..108276f3f4745bc777e8339d4ab49c402c1ef27f
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/package_name/PackageNameCase01.java
@@ -0,0 +1,6 @@
+package com.checkstyle.checks; // OK
+
+
+public class PackageNameCase01 {
+
+}
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/package_name/PackageNameCase02.java b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/package_name/PackageNameCase02.java
new file mode 100644
index 0000000000000000000000000000000000000000..b977415f97d4e9e4861c3cfe1b1294521063188f
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/package_name/PackageNameCase02.java
@@ -0,0 +1,5 @@
+package COM; // violation, name 'COM' must match pattern '^[a-z]+(\.[a-zA-Z_]\w*)*$'
+
+public class PackageNameCase02 {
+
+}
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/package_name/PackageNameCase03.java b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/package_name/PackageNameCase03.java
new file mode 100644
index 0000000000000000000000000000000000000000..992e62563e779cabc9e4ec75ff037ba093a842d4
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/package_name/PackageNameCase03.java
@@ -0,0 +1,5 @@
+package com.A.checkstyle.checks; // OK
+
+public class PackageNameCase03 {
+
+}
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/package_name/PackageNameCase04.java b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/package_name/PackageNameCase04.java
new file mode 100644
index 0000000000000000000000000000000000000000..be11bdf310afb990b23f3b49df825ea2057a55c6
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/naming_conventions/package_name/PackageNameCase04.java
@@ -0,0 +1,5 @@
+package com._checkstyle.checks_; // OK
+
+public class PackageNameCase03 {
+
+}
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/size_violations/FileLengthCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/size_violations/FileLengthCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..8339a7f732dbca3210a3335f2275b0499b13612f
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/size_violations/FileLengthCase.java
@@ -0,0 +1,21 @@
+public class FileLengthCase {
+ void MyMethod() {
+ final int VAR1 = 5; // violation
+ final int var1 = 10;
+ if(true){
+ var1 = 10;
+ var1 = 10;
+ }
+
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ }
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/size_violations/LineLengthCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/size_violations/LineLengthCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..85f4156a8143ad84db030bd1bfbe3cf9d2ba8cf9
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/size_violations/LineLengthCase.java
@@ -0,0 +1,13 @@
+public class LineLengthCase {
+ void MyMethod() {
+ final int VAR1 = 5; // violation
+ final int var1 = 10;
+ if(true){
+ var1 = 10;
+ var1 = 10;
+ }
+
+ var1 = 10;// violation ===========================================================================================
+
+ }
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/size_violations/MethodLengthCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/size_violations/MethodLengthCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..5baa503d7d0b7f8fc4a77a7315a5f2a425298e0c
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/size_violations/MethodLengthCase.java
@@ -0,0 +1,53 @@
+public class ExecutableStatementCountCase {
+ void MyMethod() {
+ final int VAR1 = 5; // violation
+ final int var1 = 10;
+ if(true){
+ var1 = 10;
+ var1 = 10;
+ }
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ var1 = 10;
+ }
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/size_violations/ParameterNumberCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/size_violations/ParameterNumberCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..a39d11eabce03ea8f330a27e93833c20ec64b200
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/size_violations/ParameterNumberCase.java
@@ -0,0 +1,14 @@
+public class FileLengthCase {
+ public FileLengthCase(String param1, String param2,String param3,String param4,String param5,
+ String param6,String param7) {
+ }
+ public FileLengthCase(String param1, String param2,String param3,String param4,String param5,
+ String param6,String param7,String param8) { // violation
+ }
+
+ void MyMethod(String param1, String param2,String param3,String param4,String param5) {
+ }
+
+ void MyMethod(String param1, String param2,String param3,String param4,String param5,String param6) { // violation
+ }
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/whitespace/EmptyForInitializerPadCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/EmptyForInitializerPadCase.java
similarity index 100%
rename from component/CodeInspector/code_inspector/src/test/resources/case/whitespace/EmptyForInitializerPadCase.java
rename to component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/EmptyForInitializerPadCase.java
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/EmptyForIteratorPadCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/EmptyForIteratorPadCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..b97597544b9176516eccb283238dab6605fe8d5e
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/EmptyForIteratorPadCase.java
@@ -0,0 +1,12 @@
+class EmptyForIteratorPadCase {
+ Map map = new HashMap<>();
+ void example() {
+ for (Iterator it = map.entrySet().iterator(); it.hasNext(););
+ for (Iterator it = map.entrySet().iterator(); it.hasNext(); );
+ // violation above '';' is followed by whitespace'
+
+ for (Iterator foo = map.entrySet().iterator();
+ foo.hasNext();
+ );
+ }
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/EmptyLineSeparatorCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/EmptyLineSeparatorCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..69579bbc5c62b85ec1961832c4a1d92c7a8273a6
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/EmptyLineSeparatorCase.java
@@ -0,0 +1,28 @@
+///////////////////////////////////////////////////
+//HEADER
+///////////////////////////////////////////////////
+package com.puppycrawl.tools.checkstyle.checks.whitespace.emptylineseparator;
+import java.io.Serializable;
+// violation 2 lines above ''package' should be separated from previous line'
+// violation 2 lines above ''import' should be separated from previous line'
+
+class Example1 {
+
+ int var1 = 1;
+ int var2 = 2;
+
+
+ int var3 = 3; // violation ''VARIABLE_DEF' should be separated from previous line'
+
+
+ void method1() {} // violation ''METHOD_DEF' should be separated from previous line'
+ void method2() { // violation ''METHOD_DEF' should be separated from previous line'
+ int var4 = 4;
+
+ // zhusi
+ int var5 = 5; // violation ''METHOD_DEF' should be separated from previous line'
+
+
+ int var6 = 5;
+ }
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/FileTabCharacterCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/FileTabCharacterCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..30a2b6c3999e2a0ae49ec3ce21f82cc9ea5fafe3
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/FileTabCharacterCase.java
@@ -0,0 +1,3 @@
+class FileTabCharacterCase {
+ int t3; // viotation
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/GenericWhitespaceCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/GenericWhitespaceCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..040704714fef65b2db6ed25f0bb1925c6e8ab586
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/GenericWhitespaceCase.java
@@ -0,0 +1,36 @@
+
+class GenericWhitespaceCase{
+ // Generic methods definitions
+ public void foo(K k, V v) {}
+
+ // Generic type definition
+ class name {}
+ // Record header
+ record License() {}
+
+ Mapm2; // violation, ">" not followed by whitespace
+ Pair p2; // violation, ">" preceded with whitespace
+
+ record License2 () {} // violation, ">" followed by whitespace
+
+ List< String> l; // violation, "<" followed by whitespace
+ Box b = Box. of("foo"); // violation, "<" preceded with whitespace
+ public void foo() {} // violation, "<" not preceded with whitespace
+
+ List a = new ArrayList<> (); // violation, ">" followed by whitespace
+
+ public void demo(){
+ // Generic type reference
+ OrderedPair> p;
+ // Generic preceded method name
+ boolean same = Util.compare(p1, p2);
+ // Diamond operator
+ Pair p1 = new Pair<>(1, "apple");
+ // Method reference
+ List list = ImmutableList.Builder::new;
+ // Method reference
+ sort(list, Comparable::compareTo);
+ // Constructor call
+ MyClass obj = new MyClass();
+ }
+}
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/MethodParamPadCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/MethodParamPadCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..d345482ec0d22b958817e7c73c16cc89cadfbc11
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/MethodParamPadCase.java
@@ -0,0 +1,14 @@
+class MethodParamPadCase {
+ public Example1() {
+ super();
+ }
+
+ public Example1 (int aParam) { // violation ''(' is preceded with whitespace'
+ super (); // violation ''(' is preceded with whitespace'
+ }
+
+ public void method() {}
+
+ public void methodWithVeryLongName
+ () {} // violation ''(' should be on the previous line.'
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/NoLineWrapCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/NoLineWrapCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..654934d4598a47863873aa127ea11b188a8120b8
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/NoLineWrapCase.java
@@ -0,0 +1,12 @@
+package com.puppycrawl. // violation 'should not be line-wrapped'
+ tools.checkstyle.checks.whitespace.nolinewrap;
+
+import com.puppycrawl.tools. // violation 'should not be line-wrapped'
+ checkstyle.api.AbstractCheck;
+
+import static java.math. // violation 'should not be line-wrapped'
+ BigInteger.ZERO;
+
+class NoLineWrapCase{
+
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/NoWhitespaceAfterCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/NoWhitespaceAfterCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..d44a3b55ae01ab594bdf1b4d5e545cdd8e04eed6
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/NoWhitespaceAfterCase.java
@@ -0,0 +1,22 @@
+class NoWhitespaceAfterCase {
+ public void lineBreak(String x) {
+ Integer.
+ parseInt(x);
+ Integer.parseInt(x);
+ }
+
+ public void dotOperator(String s) {
+ Integer.parseInt(s);
+ Integer. parseInt(s); // violation ''.' is followed by whitespace'
+ }
+
+ public void arrayDec() {
+ int[] arr;
+ int [] array; // violation ''int' is followed by whitespace'
+ }
+
+ public void bitwiseNot(int a) {
+ a = ~ a; // violation ''~' is followed by whitespace'
+ a = ~a;
+ }
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/NoWhitespaceBeforeCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/NoWhitespaceBeforeCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..64d22bd98f1124ff05352f984b2ee311425fd3ab
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/NoWhitespaceBeforeCase.java
@@ -0,0 +1,25 @@
+class NoWhitespaceBeforeCase {
+ int foo = 5;
+ void example() {
+ foo ++; // violation 'is preceded with whitespace'
+ foo++;
+ for (int i = 0 ; i < 5; i++) {} // violation '';' is preceded with whitespace'
+ for (int i = 0; i < 5; i++) {}
+ int[][] array = { { 1, 2 }
+ , { 3, 4 } }; // violation '',' is preceded with whitespace'
+ int[][] array2 = { { 1, 2 },
+ { 3, 4 } };
+ Lists.charactersOf("foo").listIterator()
+ .forEachRemaining(System.out::print)
+ ; // violation '';' is preceded with whitespace'
+ {
+ label1 : // violation '':' is preceded with whitespace'
+ for (int i = 0; i < 10; i++) {}
+ }
+
+ {
+ label2:
+ while (foo < 5) {}
+ }
+ }
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/NoWhitespaceBeforeCaseDefaultColonCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/NoWhitespaceBeforeCaseDefaultColonCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..db8e928cd8edb47f971529fed0f216dd5882a34e
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/NoWhitespaceBeforeCaseDefaultColonCase.java
@@ -0,0 +1,30 @@
+class NoWhitespaceBeforeCaseDefaultColonCase {
+ void example() {
+ switch(1) {
+ case 1 : // violation '':' is preceded with whitespace'
+ break;
+ case 2:
+ break;
+ default : // violation '':' is preceded with whitespace'
+ break;
+ }
+
+ switch(2) {
+ case 2:
+ break;
+ case 3, 4
+ : break; // violation '':' is preceded with whitespace'
+ case 5,
+ 6: break;
+ default
+ : // violation '':' is preceded with whitespace'
+ break;
+ }
+
+ switch(DayOfWeek.MONDAY) {
+ case MONDAY, FRIDAY, SUNDAY: System.out.println(" 6"); break;
+ // violation below '':' is preceded with whitespace'
+ case TUESDAY : System.out.println(" 7"); break;
+ }
+ }
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/OperatorWrapCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/OperatorWrapCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..b5ee78dc31bdec83d53663bd2bd40cad3575909d
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/OperatorWrapCase.java
@@ -0,0 +1,20 @@
+class OperatorWrapCase {
+ void example() {
+ String s = "Hello" + // violation ''\+' should be on a new line'
+ "World";
+
+ if (10 == // violation ''==' should be on a new line'
+ 20) {
+ }
+
+ if (10
+ ==
+ 20) { }
+
+ int c = 10 /
+ 5; // violation above ''/' should be on a new line'
+
+ int d = c
+ + 10;
+ }
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/ParenPadCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/ParenPadCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..bc577a38a0665f5f594ad8716931b16e1ad47509
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/ParenPadCase.java
@@ -0,0 +1,23 @@
+class ParenPadCase {
+ int n;
+
+ public void fun() {
+ bar( 1); // violation 'is followed by whitespace'
+ }
+
+ public void bar(int k ) { // violation 'is preceded with whitespace'
+ while (k > 0) {
+ }
+
+ StringBuilder obj = new StringBuilder(k);
+ }
+
+ public void fun2() {
+ switch( n) { // violation 'is followed by whitespace'
+ case 2:
+ bar(n);
+ default:
+ break;
+ }
+ }
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/SeparatorWrapCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/SeparatorWrapCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..3dde1761c16b1240bea02a08d146b2e584d5d496
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/SeparatorWrapCase.java
@@ -0,0 +1,17 @@
+import java.io.
+ IOException; // OK, dot is on the previous line
+
+class SeparatorWrapCase {
+ String s;
+
+ public void foo(int a,
+ int b) { // OK, comma is on the previous line
+ }
+
+ public void bar(int p
+ , int q) { // violation '',' should be on the previous line'
+ if (s
+ .isEmpty()) { // violation ''.' should be on the previous line'
+ }
+ }
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/SingleSpaceSeparatorCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/SingleSpaceSeparatorCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..acd4b78184325bc2e210855af36d82a7d9ff29df
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/SingleSpaceSeparatorCase.java
@@ -0,0 +1,10 @@
+class SingleSpaceSeparatorCase {
+ int foo() { // violation 'Use a single space'
+ return 1; // violation 'Use a single space'
+ }
+ int fun1() {
+ return 3;
+ }
+ void fun2() {} // violation 'Use a single space'
+}
+
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/TypecastParenPadCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/TypecastParenPadCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..3c4550bfe8f76b3da65310ea8680377b18700354
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/TypecastParenPadCase.java
@@ -0,0 +1,13 @@
+class TypecastParenPadCase {
+ float f1 = 3.14f;
+
+ int n = ( int ) f1; // 2 violations
+
+ double d = 1.234567;
+
+ float f2 = (float ) d; // violation 'preceded with whitespace'
+
+ float f3 = (float) d;
+
+ float f4 = ( float) d; // violation 'followed by whitespace'
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/WhitespaceAfterCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/WhitespaceAfterCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..8b5d5045363e710d01899df3592985a74f919c4f
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/WhitespaceAfterCase.java
@@ -0,0 +1,49 @@
+class WhitespaceAfterCase {
+ void example() throws Exception {
+ if (true) {
+ } else if(false) { // violation 'not followed by whitespace'
+ }
+
+ testOne("x", "y");
+ testOne("z","o"); // violation 'not followed by whitespace'
+
+ for (int i = 0; i < 10; i++){}
+ for(int i = 0; i < 10; i++){} // violation 'not followed by whitespace'
+
+ try (InputStream ignored = System.in) {}
+ try(InputStream ignored = System.in) {} // violation 'not followed by whitespace'
+
+ try {} catch (Exception e){}
+ try{} catch (Exception e) {} // violation ''try' is not followed by whitespace'
+
+ try {} finally {}
+ try {} finally{} // violation 'not followed by whitespace'
+
+ try {} catch (Error e){} finally {}
+ try {} catch (Error e){} finally{} // violation 'not followed by whitespace'
+
+ try {} catch (Exception e){}
+ try {} catch(Exception e){} // violation 'not followed by whitespace'
+
+ synchronized (this) { }
+ synchronized(this) { } // violation 'not followed by whitespace'
+ }
+
+ public String testOne(String a, String b) {
+ return (a + b);
+ }
+ public String testTwo(String a, String b) {
+ return(a + b); // violation 'not followed by whitespace'
+ }
+
+ void switchExample() {
+ int a = switch ("hello") {
+ case "got":
+ yield (1); // OK, followed by whitespace
+ case "my":
+ yield(3); // violation ''yield' is not followed by whitespace'
+ default:
+ yield 2;
+ };
+ }
+}
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/WhitespaceAroundCase.java b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/WhitespaceAroundCase.java
new file mode 100644
index 0000000000000000000000000000000000000000..357ba25addd818f791f56e35a68acceccbef8648
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/case/whitespaces/WhitespaceAroundCase.java
@@ -0,0 +1,24 @@
+class WhitespaceAroundCase {
+ public WhitespaceAroundCase(){} // 3 violations
+ // no space after ')' and '{', no space before '}'
+ public static void main(String[] args) {
+ if (true) { }
+ else{ // 2 violations
+ // no space after 'else', no space before '}'
+ }
+
+ for (int i = 1; i > 1; i++) {} // 2 violations
+ // no space after '{', no space before '}'
+
+ Runnable noop = () ->{}; // 4 violations
+ // no space after '->' and '{', no space before '{' and '}'
+ try { }
+ catch (Exception e){} // 3 violations
+ // no space after ')' and '{', no space before '}'
+ char[] vowels = {'a', 'e', 'i', 'o', 'u'};
+ for (char item: vowels) { // OK, ignoreEnhancedForColon is true by default
+
+ }
+ }
+}
+
\ No newline at end of file
diff --git a/component/CodeInspector/code_inspector/src/test/resources/log4j.properties b/component/CodeInspector/code_inspector/src/test/resources/log4j.properties
new file mode 100644
index 0000000000000000000000000000000000000000..d72be5ffaef89c7a6293e00fcc0ec25304a87ab4
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/log4j.properties
@@ -0,0 +1,11 @@
+#
+# Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved.
+#
+log4j.rootLogger=DEBUG,console
+# console
+log4j.appender.console=org.apache.log4j.ConsoleAppender
+log4j.appender.console.Threshold=INFO
+log4j.appender.console.ImmediateFlush=true
+log4j.appender.console.Target=System.err
+log4j.appender.console.layout=org.apache.log4j.PatternLayout
+log4j.appender.console.layout.ConversionPattern=[%d{YYYY-MM-dd HH:mm:ss}] [%p] - %l - %m%n
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/block_checks/RightCurly.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/block_checks/RightCurly.xml
index d360f11602472b05a8d17fbf4b47eadafcef8029..7ec613d39cce2405c389883910a4242be2fdfd97 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/block_checks/RightCurly.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/block_checks/RightCurly.xml
@@ -14,14 +14,14 @@
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/coding/HiddenField.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/coding/HiddenField.xml
index ccd32bd068e886fe3e6b1adef916c7134208155c..f9eaf4105d7763f7efbb62e5a275815f2a5d5798 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/coding/HiddenField.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/coding/HiddenField.xml
@@ -16,6 +16,7 @@
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/coding/IllegalThrows.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/coding/IllegalThrows.xml
index fc9d765efb09f1ffa26b465d2367a3d1737edc53..522f4f5ef08a2d1a1c6ca94a8383296d9c16f8fd 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/coding/IllegalThrows.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/coding/IllegalThrows.xml
@@ -13,7 +13,6 @@
-
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/coding/MagicNumber.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/coding/MagicNumber.xml
index 07049c09ba24abd7443382a5e21108df2fad190f..cc4f6cf8f28068ee72bb5a2d87c98e7531493582 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/coding/MagicNumber.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/coding/MagicNumber.xml
@@ -13,6 +13,7 @@
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/coding/MultipleStringLiterals.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/coding/MultipleStringLiterals.xml
index 8a34207a146f9e26264ae7227780b063eff4d09c..d29ceab6feca3610dff5d698e96a8942aca0ea2c 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/coding/MultipleStringLiterals.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/coding/MultipleStringLiterals.xml
@@ -13,7 +13,7 @@
-
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/javadoc/WriteTag.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/javadoc/WriteTag.xml
index c4a21c72d1420117611d7bb11f37976d2b7164a0..2382948e03a8d982bfa3bd830f4f93b8ad8e1ef0 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/javadoc/WriteTag.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/javadoc/WriteTag.xml
@@ -16,6 +16,7 @@
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/metrics/ClassDataAbstractionCoupling.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/metrics/ClassDataAbstractionCoupling.xml
index 725c400ffa92436e314f9da06c08eb2257a1161f..6256ecba05289301a1da054f1cf78d2ffa1b563d 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/metrics/ClassDataAbstractionCoupling.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/metrics/ClassDataAbstractionCoupling.xml
@@ -12,7 +12,10 @@
-
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/metrics/ClassFanOutComplexity.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/metrics/ClassFanOutComplexity.xml
index 12bb1e433fecefe0e801c3903929e13965c966cd..17a9236ed7b5ba40ed5fc324775918b0a83c0899 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/metrics/ClassFanOutComplexity.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/metrics/ClassFanOutComplexity.xml
@@ -12,6 +12,7 @@
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/metrics/NPathComplexity.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/metrics/NPathComplexity.xml
index 520be8abb509a912b938583ce30e92891fe6bb85..485405c3e3d7ddd81ffe9ddb9000958f86f857c2 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/metrics/NPathComplexity.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/metrics/NPathComplexity.xml
@@ -12,7 +12,7 @@
-
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/ArrayTypeStyle.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/ArrayTypeStyle.xml
index b41357d524814d5a0ec3c393f734de6db1b37c00..86442c4447503fd8445c36ee4a0cbac3b606b7c0 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/ArrayTypeStyle.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/ArrayTypeStyle.xml
@@ -1,8 +1,4 @@
-
-
@@ -12,7 +8,7 @@
-
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/DescendantToken.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/DescendantToken.xml
index ae49835322d052e0b0513a54c76dc4e4ace90e19..303b5ab8a926f9cfba278959a79b9e615644e75e 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/DescendantToken.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/DescendantToken.xml
@@ -11,30 +11,13 @@
+
-
-
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/TodoComment.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/TodoComment.xml
index 543fa99316de005d887e29ce76a67791c6c6a42c..d7dbee792bdada173150a6052d5897d943724714 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/TodoComment.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/TodoComment.xml
@@ -11,6 +11,10 @@
-
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/AbbreviationAsWordInName.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/AbbreviationAsWordInName.xml
index 52f5aaabe21a5533250f38b734f98a61f0b51dde..104827e4dcf87e916e77ab88ae4354e8f6075363 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/AbbreviationAsWordInName.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/AbbreviationAsWordInName.xml
@@ -11,6 +11,8 @@
-
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/ClassTypeParameterName.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/ClassTypeParameterName.xml
index 2592f3c917536690a8e83f4dcc943f45339b354d..58df89a25e778dd8a6b66fc4420f3725d3961727 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/ClassTypeParameterName.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/ClassTypeParameterName.xml
@@ -12,7 +12,7 @@
-
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/IllegalIdentifierName.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/IllegalIdentifierName.xml
index 7149643bc2ae5a1f4b9dba0962c2d2849f5f2f7d..f985341dbe49e8cb85624d151c29d896ecb27814 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/IllegalIdentifierName.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/IllegalIdentifierName.xml
@@ -11,9 +11,6 @@
-
-
-
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/InterfaceTypeParameterName.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/InterfaceTypeParameterName.xml
index 123c939c00beb6cf6b2cdcc7669131c95be292f3..784298db621f538f3d75be5039bde605d235f650 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/InterfaceTypeParameterName.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/InterfaceTypeParameterName.xml
@@ -12,7 +12,7 @@
-
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/FinalParameters.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/LambdaParameterName.xml
similarity index 80%
rename from component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/FinalParameters.xml
rename to component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/LambdaParameterName.xml
index 2a67a581a39cb4c350e02fbc2beb30d57f41717d..1aa59a4be6cd94173debd1a85dc134940b6bec2c 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/FinalParameters.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/LambdaParameterName.xml
@@ -1,7 +1,4 @@
-
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/MethodTypeParameterName.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/MethodTypeParameterName.xml
index 055b8b66cb7c171b5db99045bc59994233b92b50..7b37dc463164947c01d31860eea8d7fc93eb4c83 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/MethodTypeParameterName.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/MethodTypeParameterName.xml
@@ -11,6 +11,8 @@
-
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/PackageName.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/PackageName.xml
index 46656c7783fd0c4c621dbec2c8eeedbb73a8f024..d37f789465949bc01f71e84f1ea88ba63b2c3309 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/PackageName.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/PackageName.xml
@@ -11,6 +11,8 @@
-
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/RecordTypeParameterName.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/RecordTypeParameterName.xml
index 4869b492aeb999bb426ea45e71528d47d0ef9e69..79cdeb3ef4b2baf7ab0a2075acc5b8883e9d8836 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/RecordTypeParameterName.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/RecordTypeParameterName.xml
@@ -11,6 +11,8 @@
-
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/StaticVariableName.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/StaticVariableName.xml
index 7aed2aba554ce1483665f3f692cf10b9470a8335..1a0e93305f5dd36c19569526bc656b57bf49e991 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/StaticVariableName.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/StaticVariableName.xml
@@ -11,8 +11,6 @@
-
-
-
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/TypeName.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/TypeName.xml
index 1ef0b703937eafbe86658b720b2dfa55c98367a3..7103f10e8359b5cba69fdd39a215595da4828387 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/TypeName.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/naming_conventions/TypeName.xml
@@ -1,8 +1,4 @@
-
-
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/size_violations/FileLength.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/size_violations/FileLength.xml
new file mode 100644
index 0000000000000000000000000000000000000000..f986ff0208de1aaae8bda0c0d589b8b8deaab573
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/size_violations/FileLength.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/size_violations/LineLength.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/size_violations/LineLength.xml
new file mode 100644
index 0000000000000000000000000000000000000000..577af4e47b123f09037c0bc78b1b540cbf23e136
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/size_violations/LineLength.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/size_violations/MethodLength.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/size_violations/MethodLength.xml
new file mode 100644
index 0000000000000000000000000000000000000000..7cc5f7b7bf300ff9377befa0d2efdb75f158c772
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/size_violations/MethodLength.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/size_violations/ParameterNumber.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/size_violations/ParameterNumber.xml
new file mode 100644
index 0000000000000000000000000000000000000000..84fcd9c65c5e09fa1a84bebcc6d4e1a8e9c92fc0
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/size_violations/ParameterNumber.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/EmptyForInitializerPad.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/EmptyForInitializerPad.xml
new file mode 100644
index 0000000000000000000000000000000000000000..d1a232c35d757debbd1ca33b69d8108aef80b998
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/EmptyForInitializerPad.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/EmptyForIteratorPad.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/EmptyForIteratorPad.xml
new file mode 100644
index 0000000000000000000000000000000000000000..2cb1b88440997b15667146d9ce4ae033dd4256ad
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/EmptyForIteratorPad.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/EmptyLineSeparator.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/EmptyLineSeparator.xml
new file mode 100644
index 0000000000000000000000000000000000000000..d041b77aae1bb5953dc53541c4bfd27a528eb194
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/EmptyLineSeparator.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/modifiers/RedundantModifier.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/FileTabCharacter.xml
similarity index 67%
rename from component/CodeInspector/code_inspector/src/test/resources/single_rules/modifiers/RedundantModifier.xml
rename to component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/FileTabCharacter.xml
index c176c1c4d023a35e73bdacede848adba816c6c3d..79494e762766ca068e403016871a2d324d42348f 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/modifiers/RedundantModifier.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/FileTabCharacter.xml
@@ -1,8 +1,4 @@
-
-
@@ -10,7 +6,8 @@
-
-
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/GenericWhitespace.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/GenericWhitespace.xml
new file mode 100644
index 0000000000000000000000000000000000000000..50e507b23dc4efe19e0469b5f6032f0d6a56007c
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/GenericWhitespace.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/MethodParamPad.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/MethodParamPad.xml
new file mode 100644
index 0000000000000000000000000000000000000000..8dc81b223c8070bf1f886d9b98fe216a030b49b7
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/MethodParamPad.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/NewlineAtEndOfFile.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/NoLineWrap.xml
similarity index 63%
rename from component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/NewlineAtEndOfFile.xml
rename to component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/NoLineWrap.xml
index 921da91370eff83cd6977845d572f8a47d5b0a08..8f152f50d97e2fd9128d8d12421e01aa87ee7757 100644
--- a/component/CodeInspector/code_inspector/src/test/resources/single_rules/miscellaneous/NewlineAtEndOfFile.xml
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/NoLineWrap.xml
@@ -1,8 +1,4 @@
-
-
@@ -11,6 +7,10 @@
-
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/NoWhitespaceAfter.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/NoWhitespaceAfter.xml
new file mode 100644
index 0000000000000000000000000000000000000000..dca908d9f652a1f138aad9597ef1a81bd50bfc01
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/NoWhitespaceAfter.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/NoWhitespaceBefore.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/NoWhitespaceBefore.xml
new file mode 100644
index 0000000000000000000000000000000000000000..1219a9d9cbc788e4766cebc623f354779f7ea4b2
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/NoWhitespaceBefore.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/NoWhitespaceBeforeCaseDefaultColon.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/NoWhitespaceBeforeCaseDefaultColon.xml
new file mode 100644
index 0000000000000000000000000000000000000000..7af73c5de32cf10b92c77d90212726319b02ee5e
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/NoWhitespaceBeforeCaseDefaultColon.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/OperatorWrap.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/OperatorWrap.xml
new file mode 100644
index 0000000000000000000000000000000000000000..6c0c9f979184fe03755647a5422a1b931181bc45
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/OperatorWrap.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/ParenPad.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/ParenPad.xml
new file mode 100644
index 0000000000000000000000000000000000000000..af5d6b90ae3f972f61e171c9a6c167ad24c2e834
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/ParenPad.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/SeparatorWrap.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/SeparatorWrap.xml
new file mode 100644
index 0000000000000000000000000000000000000000..8a8036ad0444cd41be1eec27e13746ee4f2af9e6
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/SeparatorWrap.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/SingleSpaceSeparator.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/SingleSpaceSeparator.xml
new file mode 100644
index 0000000000000000000000000000000000000000..0822f9c4fa396a2c6c104d8ea976a9add0dbec9d
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/SingleSpaceSeparator.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/TypecastParenPad.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/TypecastParenPad.xml
new file mode 100644
index 0000000000000000000000000000000000000000..073e0be90ad1ca88eaf20125199298542ae855fa
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/TypecastParenPad.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/WhitespaceAfter.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/WhitespaceAfter.xml
new file mode 100644
index 0000000000000000000000000000000000000000..5cac66b62ab5ba89acb9ff805dd7f702269eb2f0
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/WhitespaceAfter.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/WhitespaceAround.xml b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/WhitespaceAround.xml
new file mode 100644
index 0000000000000000000000000000000000000000..c80ffb5932723ee3d0be0f7125682db9146f78b8
--- /dev/null
+++ b/component/CodeInspector/code_inspector/src/test/resources/single_rules/whitespaces/WhitespaceAround.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/DevKitTester/devkit_tester/config/perf_report.html b/component/DevKitTester/devkit_tester/config/perf_report.html
index 605c97734dcd4280baa81a7a06e6314604541ae5..221e675acc28711bb8bacf77c67eba45046e666c 100644
--- a/component/DevKitTester/devkit_tester/config/perf_report.html
+++ b/component/DevKitTester/devkit_tester/config/perf_report.html
@@ -11,7 +11,7 @@
},
perf: { "summaries": [ { "label": "Total", "samples": 1000, "failSamples": 806, "averageLatency": 1.957, "minLatency": 0, "maxLatency": 429, "median": 1, "latency99": 7, "latency95": 6, "latency90": 5, "throughput": 333 }, { "label": "Login HTTP Request", "samples": 1000, "failSamples": 806, "averageLatency": 1.957, "minLatency": 0, "maxLatency": 429, "median": 1, "latency99": 7, "latency95": 6, "latency90": 5, "throughput": 333 } ], "startTime": [ 1713159115349, 1713159116349, 1713159117349 ], "rt": { "Login HTTP Request": { "responseTime": [ 9.989247311827956, 1.3350083752093802, 0.7451612903225806 ] }, "Total": { "responseTime": [ 9.989247311827956, 1.3350083752093802, 0.7451612903225806 ] } }, "frt": { "Login HTTP Request": { "responseTime": [ 0.0, 0.5996649916247906, 0.535483870967742 ] }, "Total": { "responseTime": [ 0.0, 0.5996649916247906, 0.535483870967742 ] } }, "tps": { "Login HTTP Request": { "tps": [ 93, 597, 310 ] }, "Total": { "tps": [ 93, 597, 310 ] } }, "memory": { "10.110.0.1": { "avrora.jfr": { "heapUsed": [ 565314288, 4572720, 4572720, 3485808, 135690096, 3616880, 3616880, 3482160, 140521520, 3678768, 3678768, 3482720, 148581568, 3548256, 3548256, 3482760, 148583784, 3646600, 3646600, 3483248, 164706000, 3745392, 3745392, 3483640, 168286464, 3647480, 3647480, 3484312, 170079024, 3656344, 3656344, 3484632, 152165800, 3910616, 3910616, 3492048, 148591368, 3623120, 3623120, 3492064, 148589856, 3623136, 3623136, 3492080, 164712976, 3623152, 3623152, 3492096 ], "reservedSize": [ 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288 ], "startTime": [ 1713159121554, 1713159121559, 1713159121559, 1713159121593, 1713159127374, 1713159127376, 1713159127376, 1713159127410, 1713159132594, 1713159132596, 1713159132596, 1713159132621, 1713159138995, 1713159139000, 1713159139000, 1713159139031, 1713159144655, 1713159144657, 1713159144657, 1713159144681, 1713159150367, 1713159150370, 1713159150370, 1713159150393, 1713159156600, 1713159156605, 1713159156605, 1713159156630, 1713159162238, 1713159162239, 1713159162239, 1713159162264, 1713159167878, 1713159167880, 1713159167880, 1713159167910, 1713159174508, 1713159174510, 1713159174510, 1713159174534, 1713159180368, 1713159180373, 1713159180373, 1713159180396, 1713159186422, 1713159186424, 1713159186424, 1713159186448 ], "committedSize": [ 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688 ] } }, "10.110.0.2": { "avrora.jfr": { "heapUsed": [ 265314288, 4572720, 4572720, 3485808, 135690096, 3616880, 3616880, 3482160, 140521520, 3678768, 3678768, 3482720, 148581568, 3548256, 3548256, 3482760, 148583784, 3646600, 3646600, 3483248, 164706000, 3745392, 3745392, 3483640, 168286464, 3647480, 3647480, 3484312, 170079024, 3656344, 3656344, 3484632, 152165800, 3910616, 3910616, 3492048, 148591368, 3623120, 3623120, 3492064, 148589856, 3623136, 3623136, 3492080, 164712976, 3623152, 3623152, 3492096 ], "reservedSize": [ 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288 ], "startTime": [ 1713159121554, 1713159121559, 1713159121559, 1713159121593, 1713159127374, 1713159127376, 1713159127376, 1713159127410, 1713159132594, 1713159132596, 1713159132596, 1713159132621, 1713159138995, 1713159139000, 1713159139000, 1713159139031, 1713159144655, 1713159144657, 1713159144657, 1713159144681, 1713159150367, 1713159150370, 1713159150370, 1713159150393, 1713159156600, 1713159156605, 1713159156605, 1713159156630, 1713159162238, 1713159162239, 1713159162239, 1713159162264, 1713159167878, 1713159167880, 1713159167880, 1713159167910, 1713159174508, 1713159174510, 1713159174510, 1713159174534, 1713159180368, 1713159180373, 1713159180373, 1713159180396, 1713159186422, 1713159186424, 1713159186424, 1713159186448 ], "committedSize": [ 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688 ] }, "avrora2.jfr": { "heapUsed": [ 265314288, 4572720, 4572720, 3485808, 135690096, 3616880, 3616880, 3482160, 140521520, 3678768, 3678768, 3482720, 148581568, 3548256, 3548256, 3482760, 148583784, 3646600, 3646600, 3483248, 164706000, 3745392, 3745392, 3483640, 168286464, 3647480, 3647480, 3484312, 170079024, 3656344, 3656344, 3484632, 152165800, 3910616, 3910616, 3492048, 148591368, 3623120, 3623120, 3492064, 148589856, 3623136, 3623136, 3492080, 164712976, 3623152, 3623152, 3492096 ], "reservedSize": [ 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288, 32178700288 ], "startTime": [ 1713159121554, 1713159121559, 1713159121559, 1713159121593, 1713159127374, 1713159127376, 1713159127376, 1713159127410, 1713159132594, 1713159132596, 1713159132596, 1713159132621, 1713159138995, 1713159139000, 1713159139000, 1713159139031, 1713159144655, 1713159144657, 1713159144657, 1713159144681, 1713159150367, 1713159150370, 1713159150370, 1713159150393, 1713159156600, 1713159156605, 1713159156605, 1713159156630, 1713159162238, 1713159162239, 1713159162239, 1713159162264, 1713159167878, 1713159167880, 1713159167880, 1713159167910, 1713159174508, 1713159174510, 1713159174510, 1713159174534, 1713159180368, 1713159180373, 1713159180373, 1713159180396, 1713159186422, 1713159186424, 1713159186424, 1713159186448 ], "committedSize": [ 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688, 2058354688 ] } } }, "cpu": { "10.110.0.1": { "avrora.jfr": { "jvmUser": [ 0.009791667, 0.011889991, 0.00976015, 0.008832087, 0.009152366, 0.009179097, 0.013008637, 0.009869104, 0.009445713, 0.009673393, 0.009699625, 0.009459459, 0.013778706, 0.009243872, 0.009458477, 0.009486084, 0.009863981, 0.009450618, 0.009350649, 0.0122661125, 0.009684473, 0.00914856, 0.009560429, 0.009346765, 0.012292119, 0.008450705, 0.009356482, 0.008933209, 0.008420833, 0.009349678, 0.012211669, 0.052583333, 0.010375597, 0.008512406, 0.008523023, 0.008902691, 0.02044222, 0.00987013, 0.009360374, 0.009971954, 0.0093847755, 0.009045539, 0.0129856635, 0.010085257, 0.009458477, 0.009555464, 0.0096643455, 0.011888622, 0.009258296, 0.009141907, 0.009697602, 0.008932281, 0.008932281, 0.013658638, 0.00872546, 0.009135264, 0.009656318, 0.009457493, 0.009354537, 0.014001245, 0.010066418, 0.00893878, 0.009038022, 0.009035206, 0.012519084, 0.0097459825, 0.009244832, 0.00872546, 0.009456511, 0.0090399 ], "machineTotal": [ 0.016145833, 0.021916674, 0.01733984, 0.017248545, 0.016952679, 0.016689267, 0.019252785, 0.017348846, 0.017230641, 0.018200727, 0.02357113, 0.016632017, 0.020876827, 0.01610055, 0.015590895, 0.016260162, 0.01661302, 0.016304912, 0.015896104, 0.02006237, 0.017286265, 0.016529785, 0.01673075, 0.016718587, 0.018285124, 0.01690141, 0.016321862, 0.0163083, 0.016425824, 0.016309993, 0.018891556, 0.061166666, 0.017536579, 0.016194332, 0.015071198, 0.015529558, 0.027221527, 0.017246753, 0.017368695, 0.016723797, 0.016684046, 0.01632356, 0.019738209, 0.01757122, 0.017461803, 0.017864563, 0.017562091, 0.019188654, 0.016644128, 0.016413879, 0.016579771, 0.016618198, 0.016095534, 0.020227296, 0.017243171, 0.016921, 0.016922757, 0.016732488, 0.016838167, 0.02095001, 0.017330842, 0.016526349, 0.01662165, 0.016616471, 0.019847328, 0.01721099, 0.016204424, 0.016204424, 0.016211161, 0.016209476 ], "jvmSystem": [ 0.0063541667, 0.00754756, 0.007579691, 0.008416459, 0.007800312, 0.00751017, 0.0062441463, 0.007479742, 0.007784928, 0.0069690035, 0.0070921984, 0.007172557, 0.007098121, 0.006543415, 0.0061324188, 0.006254561, 0.0057107257, 0.0062311767, 0.006233766, 0.0077962577, 0.007601791, 0.0073812245, 0.007170321, 0.007165853, 0.005681231, 0.008450705, 0.006965381, 0.007375091, 0.00800499, 0.0069603156, 0.0066798874, 0.008583333, 0.006536626, 0.0067476383, 0.006548176, 0.0064182193, 0.0067793075, 0.0073766233, 0.00800832, 0.0067518437, 0.00729927, 0.0072780205, 0.006752545, 0.007485964, 0.008003326, 0.008309099, 0.007897745, 0.0073000314, 0.007385832, 0.0072719716, 0.006882169, 0.007374325, 0.0070627336, 0.006568658, 0.0085177105, 0.0077857366, 0.007164365, 0.0072749946, 0.0074836295, 0.006948766, 0.007264425, 0.007587569, 0.0075836275, 0.0075812647, 0.0073282444, 0.0074650077, 0.006959593, 0.0074789654, 0.0067546503, 0.007169576 ], "startTime": [ 1713159156414, 1713159157423, 1713159158426, 1713159159429, 1713159160433, 1713159161433, 1713159162435, 1713159163438, 1713159164441, 1713159165445, 1713159166444, 1713159167448, 1713159168448, 1713159169451, 1713159170454, 1713159171454, 1713159172458, 1713159173461, 1713159174464, 1713159175468, 1713159176468, 1713159177471, 1713159178475, 1713159179478, 1713159180487, 1713159181486, 1713159182490, 1713159183493, 1713159184496, 1713159185500, 1713159186500, 1713159117265, 1713159118270, 1713159119273, 1713159120277, 1713159121284, 1713159122285, 1713159123289, 1713159124292, 1713159125295, 1713159126296, 1713159127299, 1713159128303, 1713159129307, 1713159130310, 1713159131314, 1713159132317, 1713159133317, 1713159134321, 1713159135324, 1713159136324, 1713159137327, 1713159138331, 1713159139331, 1713159140335, 1713159141339, 1713159142342, 1713159143345, 1713159144349, 1713159145354, 1713159146358, 1713159147362, 1713159148365, 1713159149368, 1713159150394, 1713159151399, 1713159152402, 1713159153406, 1713159154410, 1713159155413 ] } }, "10.110.0.2": { "avrora.jfr": { "jvmUser": [ 0.009791667, 0.011889991, 0.00976015, 0.008832087, 0.009152366, 0.009179097, 0.013008637, 0.009869104, 0.009445713, 0.009673393, 0.009699625, 0.009459459, 0.013778706, 0.009243872, 0.009458477, 0.009486084, 0.009863981, 0.009450618, 0.009350649, 0.0122661125, 0.009684473, 0.00914856, 0.009560429, 0.009346765, 0.012292119, 0.008450705, 0.009356482, 0.008933209, 0.008420833, 0.009349678, 0.012211669, 0.052583333, 0.010375597, 0.008512406, 0.008523023, 0.008902691, 0.02044222, 0.00987013, 0.009360374, 0.009971954, 0.0093847755, 0.009045539, 0.0129856635, 0.010085257, 0.009458477, 0.009555464, 0.0096643455, 0.011888622, 0.009258296, 0.009141907, 0.009697602, 0.008932281, 0.008932281, 0.013658638, 0.00872546, 0.009135264, 0.009656318, 0.009457493, 0.009354537, 0.014001245, 0.010066418, 0.00893878, 0.009038022, 0.009035206, 0.012519084, 0.0097459825, 0.009244832, 0.00872546, 0.009456511, 0.0090399 ], "machineTotal": [ 0.016145833, 0.021916674, 0.01733984, 0.017248545, 0.016952679, 0.016689267, 0.019252785, 0.017348846, 0.017230641, 0.018200727, 0.02357113, 0.016632017, 0.020876827, 0.01610055, 0.015590895, 0.016260162, 0.01661302, 0.016304912, 0.015896104, 0.02006237, 0.017286265, 0.016529785, 0.01673075, 0.016718587, 0.018285124, 0.01690141, 0.016321862, 0.0163083, 0.016425824, 0.016309993, 0.018891556, 0.061166666, 0.017536579, 0.016194332, 0.015071198, 0.015529558, 0.027221527, 0.017246753, 0.017368695, 0.016723797, 0.016684046, 0.01632356, 0.019738209, 0.01757122, 0.017461803, 0.017864563, 0.017562091, 0.019188654, 0.016644128, 0.016413879, 0.016579771, 0.016618198, 0.016095534, 0.020227296, 0.017243171, 0.016921, 0.016922757, 0.016732488, 0.016838167, 0.02095001, 0.017330842, 0.016526349, 0.01662165, 0.016616471, 0.019847328, 0.01721099, 0.016204424, 0.016204424, 0.016211161, 0.016209476 ], "jvmSystem": [ 0.0063541667, 0.00754756, 0.007579691, 0.008416459, 0.007800312, 0.00751017, 0.0062441463, 0.007479742, 0.007784928, 0.0069690035, 0.0070921984, 0.007172557, 0.007098121, 0.006543415, 0.0061324188, 0.006254561, 0.0057107257, 0.0062311767, 0.006233766, 0.0077962577, 0.007601791, 0.0073812245, 0.007170321, 0.007165853, 0.005681231, 0.008450705, 0.006965381, 0.007375091, 0.00800499, 0.0069603156, 0.0066798874, 0.008583333, 0.006536626, 0.0067476383, 0.006548176, 0.0064182193, 0.0067793075, 0.0073766233, 0.00800832, 0.0067518437, 0.00729927, 0.0072780205, 0.006752545, 0.007485964, 0.008003326, 0.008309099, 0.007897745, 0.0073000314, 0.007385832, 0.0072719716, 0.006882169, 0.007374325, 0.0070627336, 0.006568658, 0.0085177105, 0.0077857366, 0.007164365, 0.0072749946, 0.0074836295, 0.006948766, 0.007264425, 0.007587569, 0.0075836275, 0.0075812647, 0.0073282444, 0.0074650077, 0.006959593, 0.0074789654, 0.0067546503, 0.007169576 ], "startTime": [ 1713159156414, 1713159157423, 1713159158426, 1713159159429, 1713159160433, 1713159161433, 1713159162435, 1713159163438, 1713159164441, 1713159165445, 1713159166444, 1713159167448, 1713159168448, 1713159169451, 1713159170454, 1713159171454, 1713159172458, 1713159173461, 1713159174464, 1713159175468, 1713159176468, 1713159177471, 1713159178475, 1713159179478, 1713159180487, 1713159181486, 1713159182490, 1713159183493, 1713159184496, 1713159185500, 1713159186500, 1713159117265, 1713159118270, 1713159119273, 1713159120277, 1713159121284, 1713159122285, 1713159123289, 1713159124292, 1713159125295, 1713159126296, 1713159127299, 1713159128303, 1713159129307, 1713159130310, 1713159131314, 1713159132317, 1713159133317, 1713159134321, 1713159135324, 1713159136324, 1713159137327, 1713159138331, 1713159139331, 1713159140335, 1713159141339, 1713159142342, 1713159143345, 1713159144349, 1713159145354, 1713159146358, 1713159147362, 1713159148365, 1713159149368, 1713159150394, 1713159151399, 1713159152402, 1713159153406, 1713159154410, 1713159155413 ] }, "avrora2.jfr": { "jvmUser": [ 0.009791667, 0.011889991, 0.00976015, 0.008832087, 0.009152366, 0.009179097, 0.013008637, 0.009869104, 0.009445713, 0.009673393, 0.009699625, 0.009459459, 0.013778706, 0.009243872, 0.009458477, 0.009486084, 0.009863981, 0.009450618, 0.009350649, 0.0122661125, 0.009684473, 0.00914856, 0.009560429, 0.009346765, 0.012292119, 0.008450705, 0.009356482, 0.008933209, 0.008420833, 0.009349678, 0.012211669, 0.052583333, 0.010375597, 0.008512406, 0.008523023, 0.008902691, 0.02044222, 0.00987013, 0.009360374, 0.009971954, 0.0093847755, 0.009045539, 0.0129856635, 0.010085257, 0.009458477, 0.009555464, 0.0096643455, 0.011888622, 0.009258296, 0.009141907, 0.009697602, 0.008932281, 0.008932281, 0.013658638, 0.00872546, 0.009135264, 0.009656318, 0.009457493, 0.009354537, 0.014001245, 0.010066418, 0.00893878, 0.009038022, 0.009035206, 0.012519084, 0.0097459825, 0.009244832, 0.00872546, 0.009456511, 0.0090399 ], "machineTotal": [ 0.016145833, 0.021916674, 0.01733984, 0.017248545, 0.016952679, 0.016689267, 0.019252785, 0.017348846, 0.017230641, 0.018200727, 0.02357113, 0.016632017, 0.020876827, 0.01610055, 0.015590895, 0.016260162, 0.01661302, 0.016304912, 0.015896104, 0.02006237, 0.017286265, 0.016529785, 0.01673075, 0.016718587, 0.018285124, 0.01690141, 0.016321862, 0.0163083, 0.016425824, 0.016309993, 0.018891556, 0.061166666, 0.017536579, 0.016194332, 0.015071198, 0.015529558, 0.027221527, 0.017246753, 0.017368695, 0.016723797, 0.016684046, 0.01632356, 0.019738209, 0.01757122, 0.017461803, 0.017864563, 0.017562091, 0.019188654, 0.016644128, 0.016413879, 0.016579771, 0.016618198, 0.016095534, 0.020227296, 0.017243171, 0.016921, 0.016922757, 0.016732488, 0.016838167, 0.02095001, 0.017330842, 0.016526349, 0.01662165, 0.016616471, 0.019847328, 0.01721099, 0.016204424, 0.016204424, 0.016211161, 0.016209476 ], "jvmSystem": [ 0.0063541667, 0.00754756, 0.007579691, 0.008416459, 0.007800312, 0.00751017, 0.0062441463, 0.007479742, 0.007784928, 0.0069690035, 0.0070921984, 0.007172557, 0.007098121, 0.006543415, 0.0061324188, 0.006254561, 0.0057107257, 0.0062311767, 0.006233766, 0.0077962577, 0.007601791, 0.0073812245, 0.007170321, 0.007165853, 0.005681231, 0.008450705, 0.006965381, 0.007375091, 0.00800499, 0.0069603156, 0.0066798874, 0.008583333, 0.006536626, 0.0067476383, 0.006548176, 0.0064182193, 0.0067793075, 0.0073766233, 0.00800832, 0.0067518437, 0.00729927, 0.0072780205, 0.006752545, 0.007485964, 0.008003326, 0.008309099, 0.007897745, 0.0073000314, 0.007385832, 0.0072719716, 0.006882169, 0.007374325, 0.0070627336, 0.006568658, 0.0085177105, 0.0077857366, 0.007164365, 0.0072749946, 0.0074836295, 0.006948766, 0.007264425, 0.007587569, 0.0075836275, 0.0075812647, 0.0073282444, 0.0074650077, 0.006959593, 0.0074789654, 0.0067546503, 0.007169576 ], "startTime": [ 1713159156414, 1713159157423, 1713159158426, 1713159159429, 1713159160433, 1713159161433, 1713159162435, 1713159163438, 1713159164441, 1713159165445, 1713159166444, 1713159167448, 1713159168448, 1713159169451, 1713159170454, 1713159171454, 1713159172458, 1713159173461, 1713159174464, 1713159175468, 1713159176468, 1713159177471, 1713159178475, 1713159179478, 1713159180487, 1713159181486, 1713159182490, 1713159183493, 1713159184496, 1713159185500, 1713159186500, 1713159117265, 1713159118270, 1713159119273, 1713159120277, 1713159121284, 1713159122285, 1713159123289, 1713159124292, 1713159125295, 1713159126296, 1713159127299, 1713159128303, 1713159129307, 1713159130310, 1713159131314, 1713159132317, 1713159133317, 1713159134321, 1713159135324, 1713159136324, 1713159137327, 1713159138331, 1713159139331, 1713159140335, 1713159141339, 1713159142342, 1713159143345, 1713159144349, 1713159145354, 1713159146358, 1713159147362, 1713159148365, 1713159149368, 1713159150394, 1713159151399, 1713159152402, 1713159153406, 1713159154410, 1713159155413 ] } } }, "flame": { "-1": { "n": "all", "v": 4389, "c": [ { "n": "avrora.jfr", "v": 1463, "c": [ { "n": "java.lang.Thread.run()", "v": 1, "c": [ { "n": "jdk.jfr.internal.PlatformRecorder$$Lambda$53.1996344612.run()", "v": 1, "c": [ { "n": "jdk.jfr.internal.PlatformRecorder.lambda$startDiskMonitor$1()", "v": 1, "c": [ { "n": "jdk.jfr.internal.PlatformRecorder.periodicTask()", "v": 1, "c": [ { "n": "jdk.jfr.internal.RequestEngine.doPeriodic()", "v": 1, "c": [ { "n": "jdk.jfr.internal.RequestEngine.run_requests(java.util.Collection)", "v": 1, "c": [] } ] } ] } ] } ] } ] }, { "n": "Harness.main(java.lang.String[])", "v": 3, "c": [ { "n": "java.lang.reflect.Method.invoke(java.lang.Object,java.lang.Object[])", "v": 3, "c": [ { "n": "sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object,java.lang.Object[])", "v": 3, "c": [ { "n": "sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object,java.lang.Object[])", "v": 3, "c": [ { "n": "sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method,java.lang.Object,java.lang.Object[])", "v": 3, "c": [ { "n": "org.dacapo.harness.TestHarness.main(java.lang.String[])", "v": 3, "c": [ { "n": "org.dacapo.harness.TestHarness.runBenchmark(java.io.File,java.io.File,java.lang.String,org.dacapo.harness.TestHarness)", "v": 3, "c": [ { "n": "org.dacapo.harness.Benchmark.run(org.dacapo.harness.Callback,java.lang.String)", "v": 3, "c": [ { "n": "org.dacapo.harness.Benchmark.startIteration()", "v": 1, "c": [ { "n": "org.dacapo.harness.Avrora.augmentSystemProperties(java.util.Properties)", "v": 1, "c": [ { "n": "java.util.Properties.setProperty(java.lang.String,java.lang.String)", "v": 1, "c": [ { "n": "java.util.Hashtable.put(java.lang.Object,java.lang.Object)", "v": 1, "c": [] } ] } ] } ] }, { "n": "org.dacapo.harness.Callback.start(java.lang.String)", "v": 1, "c": [ { "n": "org.dacapo.harness.Callback.start(java.lang.String,boolean)", "v": 1, "c": [] } ] }, { "n": "org.dacapo.harness.Avrora.iterate(java.lang.String)", "v": 1, "c": [ { "n": "java.lang.reflect.Method.invoke(java.lang.Object,java.lang.Object[])", "v": 1, "c": [ { "n": "sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object,java.lang.Object[])", "v": 1, "c": [ { "n": "sun.reflect.GeneratedMethodAccessor3.invoke(java.lang.Object,java.lang.Object[])", "v": 1, "c": [ { "n": "avrora.Main.main(java.lang.String[])", "v": 1, "c": [ { "n": "avrora.Main.runAction()", "v": 1, "c": [ { "n": "avrora.actions.SimAction.run(java.lang.String[])", "v": 1, "c": [ { "n": "avrora.actions.SimAction.exitSimulation(java.lang.Throwable)", "v": 1, "c": [ { "n": "avrora.actions.SimAction.report(java.lang.Throwable)", "v": 1, "c": [ { "n": "avrora.actions.SimAction.reportMonitors(avrora.sim.Simulation)", "v": 1, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.report()", "v": 1, "c": [ { "n": "cck.text.Terminal.print(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 1, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 1, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.SimulatorThread.run()", "v": 1459, "c": [ { "n": "avrora.sim.Simulator.start()", "v": 1459, "c": [ { "n": "avrora.sim.AtmelInterpreter.start()", "v": 1459, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.runLoop()", "v": 1459, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.fastLoop()", "v": 770, "c": [ { "n": "avrora.arch.legacy.LegacyInstr$IN.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 8, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$IN)", "v": 8, "c": [ { "n": "avrora.sim.AtmelInterpreter.getIORegisterByte(int)", "v": 8, "c": [ { "n": "avrora.sim.AtmelInterpreter.readSRAM(boolean,int)", "v": 8, "c": [ { "n": "avrora.sim.AtmelInterpreter.readVolatile(int)", "v": 7, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.read(int)", "v": 7, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$RJMP.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [] }, { "n": "avrora.sim.AtmelInterpreter.commit()", "v": 294, "c": [ { "n": "avrora.sim.clock.MainClock.advance(long)", "v": 294, "c": [ { "n": "avrora.sim.clock.DeltaQueue.advance(long)", "v": 294, "c": [ { "n": "avrora.sim.clock.DeltaQueue.advanceSlow(long)", "v": 294, "c": [ { "n": "avrora.sim.clock.DeltaQueue$Link.fire()", "v": 294, "c": [ { "n": "avrora.sim.radio.CC1000Radio$SPITicker.fire()", "v": 1, "c": [ { "n": "avrora.sim.mcu.SPI.exchange(avrora.sim.mcu.SPI$Frame)", "v": 1, "c": [ { "n": "avrora.sim.mcu.SPI.receive(avrora.sim.mcu.SPI$Frame)", "v": 1, "c": [ { "n": "avrora.sim.mcu.SPI.postSPIInterrupt()", "v": 1, "c": [ { "n": "avrora.sim.mcu.SPI$SPSReg.setSPIF()", "v": 1, "c": [ { "n": "avrora.sim.state.RegisterUtil$BoolView.setValue(boolean)", "v": 1, "c": [ { "n": "avrora.sim.RWRegister.setValue(int)", "v": 1, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 1, "c": [ { "n": "java.util.AbstractSequentialList.iterator()", "v": 1, "c": [ { "n": "java.util.AbstractList.listIterator()", "v": 1, "c": [ { "n": "java.util.LinkedList.listIterator(int)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.mcu.Timer8Bit$Mode_CTC.fire()", "v": 1, "c": [ { "n": "avrora.sim.mcu.Timer8Bit.access$100(avrora.sim.mcu.Timer8Bit,avrora.sim.Simulator$Event,int)", "v": 1, "c": [ { "n": "avrora.sim.mcu.Timer8Bit.tickerFinish(avrora.sim.Simulator$Event,int)", "v": 1, "c": [ { "n": "avrora.sim.clock.DerivedClock.insertEvent(avrora.sim.Simulator$Event,long)", "v": 1, "c": [ { "n": "avrora.sim.clock.MainClock.insertEvent(avrora.sim.Simulator$Event,long)", "v": 1, "c": [ { "n": "avrora.sim.clock.DeltaQueue.insertEvent(avrora.sim.Simulator$Event,long)", "v": 1, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fire()", "v": 200, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireUnlocked(long)", "v": 4, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.access$000(avrora.sim.radio.Medium$Receiver,long)", "v": 4, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.waitForNeighbors(long)", "v": 4, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.waitForNeighbors(long)", "v": 4, "c": [ { "n": "java.util.HashMap.get(java.lang.Object)", "v": 1, "c": [ { "n": "java.util.HashMap.getNode(int,java.lang.Object)", "v": 1, "c": [] } ] }, { "n": "avrora.sim.clock.RippleSynchronizer.advance(long,avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 2, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.notifyLink(avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 2, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireLocked(long)", "v": 196, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.access$000(avrora.sim.radio.Medium$Receiver,long)", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.waitForNeighbors(long)", "v": 2, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.waitForNeighbors(long)", "v": 2, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.advance(long,avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 1, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.notifyLink(avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 1, "c": [] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.deliverByte(long)", "v": 194, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.access$200(avrora.sim.radio.Medium$Receiver,long)", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.getIntersection(long)", "v": 2, "c": [] } ] }, { "n": "avrora.sim.radio.Medium$Probe$List.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 192, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 192, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 189, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 189, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 189, "c": [ { "n": "java.io.PrintStream.newLine()", "v": 1, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 1, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "java.io.PrintStream.print(java.lang.String)", "v": 188, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 188, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 188, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 188, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 188, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 188, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 188, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 188, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 188, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 188, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 188, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.monitors.PacketMonitor$Mon.renderPacket(java.lang.String,int,int,int)", "v": 3, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.appendTime(java.lang.StringBuffer)", "v": 1, "c": [ { "n": "cck.text.StringUtil.toFixedFloat(float,int)", "v": 1, "c": [] } ] }, { "n": "avrora.monitors.PacketMonitor$Mon.renderByte(int,char,boolean,java.lang.StringBuffer)", "v": 1, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.renderByte(java.lang.StringBuffer,int,char)", "v": 1, "c": [ { "n": "cck.text.StringUtil.toHex(long,int)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Transmitter$Ticker.fire()", "v": 92, "c": [ { "n": "avrora.sim.radio.Medium$Probe$List.fireBeforeTransmitEnd(avrora.sim.radio.Medium$Transmitter)", "v": 92, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireBeforeTransmitEnd(avrora.sim.radio.Medium$Transmitter)", "v": 92, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 90, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 90, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 90, "c": [ { "n": "java.io.PrintStream.newLine()", "v": 1, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 1, "c": [] } ] } ] } ] } ] }, { "n": "java.io.PrintStream.print(java.lang.String)", "v": 89, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 89, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 88, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 88, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 88, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 88, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 88, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 88, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 88, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 88, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 88, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "java.io.BufferedWriter.flushBuffer()", "v": 1, "c": [ { "n": "java.io.OutputStreamWriter.write(char[],int,int)", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.write(char[],int,int)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.monitors.PacketMonitor$Mon.renderPacket(java.lang.String,int,int,int)", "v": 2, "c": [ { "n": "cck.text.Terminal.append(int,java.lang.StringBuffer,java.lang.String)", "v": 1, "c": [ { "n": "java.lang.StringBuffer.append(java.lang.String)", "v": 1, "c": [ { "n": "java.lang.AbstractStringBuilder.append(java.lang.String)", "v": 1, "c": [] } ] } ] }, { "n": "avrora.sim.output.SimPrinter.getBuffer(int)", "v": 1, "c": [ { "n": "avrora.sim.util.SimUtil.getIDTimeString(java.lang.StringBuffer,avrora.sim.Simulator)", "v": 1, "c": [ { "n": "avrora.sim.util.SimUtil.toIDTimeString(java.lang.StringBuffer,int,avrora.sim.clock.Clock)", "v": 1, "c": [ { "n": "cck.text.StringUtil.justify(boolean,java.lang.StringBuffer,long,int)", "v": 1, "c": [ { "n": "cck.text.StringUtil.justify(boolean,java.lang.StringBuffer,java.lang.String,int)", "v": 1, "c": [ { "n": "java.lang.StringBuffer.append(java.lang.String)", "v": 1, "c": [ { "n": "java.lang.AbstractStringBuilder.append(java.lang.String)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$SBI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 66, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$SBI)", "v": 66, "c": [ { "n": "avrora.sim.AtmelInterpreter.setIORegBit(int,int,boolean)", "v": 66, "c": [ { "n": "avrora.sim.AtmelInterpreter.readSRAM(boolean,int)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.readVolatile(int)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.read(int)", "v": 2, "c": [] } ] } ] }, { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 64, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 64, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 64, "c": [ { "n": "avrora.sim.mcu.ATMegaFamily$DirectionRegister.write(byte)", "v": 1, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.setOutputDir(boolean)", "v": 1, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.write(boolean)", "v": 1, "c": [ { "n": "avrora.sim.platform.LED.write(boolean)", "v": 1, "c": [ { "n": "avrora.sim.FiniteStateMachine.transition(int)", "v": 1, "c": [ { "n": "avrora.sim.FiniteStateMachine.fireAfter(avrora.sim.util.MulticastFSMProbe,int,int)", "v": 1, "c": [ { "n": "avrora.sim.util.MulticastFSMProbe.fireAfterTransition(int,int)", "v": 1, "c": [ { "n": "avrora.monitors.LEDMonitor$Mon.fireAfterTransition(int,int)", "v": 1, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 1, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 1, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 1, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.mcu.ADC$ControlRegister.write(byte)", "v": 2, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister.startConversion()", "v": 1, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister.insertConversion()", "v": 1, "c": [] } ] }, { "n": "avrora.sim.mcu.ADC$ControlRegister.unpostADCInterrupt()", "v": 1, "c": [ { "n": "avrora.sim.state.RegisterUtil$BoolView.setValue(boolean)", "v": 1, "c": [ { "n": "avrora.sim.RWRegister.setValue(int)", "v": 1, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 1, "c": [] } ] } ] } ] } ] }, { "n": "avrora.sim.mcu.ATMegaFamily$PortRegister.write(byte)", "v": 57, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.write(boolean)", "v": 53, "c": [ { "n": "avrora.sim.platform.LED.write(boolean)", "v": 53, "c": [ { "n": "avrora.sim.FiniteStateMachine.transition(int)", "v": 53, "c": [ { "n": "avrora.sim.FiniteStateMachine.fireAfter(avrora.sim.util.MulticastFSMProbe,int,int)", "v": 53, "c": [ { "n": "avrora.sim.util.MulticastFSMProbe.fireAfterTransition(int,int)", "v": 53, "c": [ { "n": "avrora.monitors.LEDMonitor$Mon.fireAfterTransition(int,int)", "v": 53, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 51, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 51, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 51, "c": [ { "n": "java.io.PrintStream.newLine()", "v": 2, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 2, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 2, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 2, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 2, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "java.io.PrintStream.print(java.lang.String)", "v": 49, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 49, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 49, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 49, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 49, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 49, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 49, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 49, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 49, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 49, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 49, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.output.SimPrinter.getBuffer(int)", "v": 2, "c": [ { "n": "avrora.sim.util.SimUtil.getIDTimeString(java.lang.StringBuffer,avrora.sim.Simulator)", "v": 2, "c": [ { "n": "avrora.sim.util.SimUtil.toIDTimeString(java.lang.StringBuffer,int,avrora.sim.clock.Clock)", "v": 2, "c": [ { "n": "cck.text.StringUtil.justify(boolean,java.lang.StringBuffer,long,int)", "v": 2, "c": [ { "n": "java.lang.Long.toString(long)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.mcu.AtmelMicrocontroller$INTPin.write(boolean)", "v": 4, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.write(boolean)", "v": 2, "c": [] }, { "n": "avrora.sim.mcu.DefaultMCU$Pin.read()", "v": 2, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.printRead(boolean)", "v": 2, "c": [ { "n": "avrora.sim.Simulator.getPrinter(java.lang.String)", "v": 2, "c": [ { "n": "avrora.sim.Simulation.getPrinter(avrora.sim.Simulator,java.lang.String)", "v": 2, "c": [ { "n": "cck.text.Verbose.isVerbose(java.lang.String)", "v": 2, "c": [ { "n": "java.util.HashMap.get(java.lang.Object)", "v": 1, "c": [ { "n": "java.util.HashMap.getNode(int,java.lang.Object)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$RETI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 6, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$RETI)", "v": 6, "c": [ { "n": "avrora.sim.AtmelInterpreter.popByte()", "v": 6, "c": [ { "n": "avrora.sim.AtmelInterpreter.getDataByte(int)", "v": 6, "c": [ { "n": "avrora.sim.AtmelInterpreter.readSRAM(boolean,int)", "v": 6, "c": [ { "n": "avrora.sim.AtmelInterpreter.readVolatile(int)", "v": 6, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.read(int)", "v": 6, "c": [] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$BREQ.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [] }, { "n": "avrora.arch.legacy.LegacyInstr$BRPL.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [] }, { "n": "avrora.arch.legacy.LegacyInstr$LPM.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$LPM)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterWord(avrora.arch.legacy.LegacyRegister)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 1, "c": [] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$SUBI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 3, "c": [] }, { "n": "avrora.arch.legacy.LegacyInstr$ST.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$ST)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeDataByte(int,byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 1, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$SLEEP.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 4, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$SLEEP)", "v": 4, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.enterSleepMode()", "v": 4, "c": [ { "n": "avrora.sim.mcu.AtmelMicrocontroller.sleep()", "v": 3, "c": [ { "n": "avrora.sim.FiniteStateMachine.transition(int)", "v": 2, "c": [ { "n": "avrora.sim.FiniteStateMachine.fireBefore(avrora.sim.util.MulticastFSMProbe,int,int)", "v": 2, "c": [ { "n": "avrora.sim.util.MulticastFSMProbe.fireBeforeTransition(int,int)", "v": 2, "c": [] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$ORI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 4, "c": [] }, { "n": "avrora.arch.legacy.LegacyInstr$CP.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 4, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$CP)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 4, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$SBIC.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 6, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$SBIC)", "v": 6, "c": [ { "n": "avrora.sim.AtmelInterpreter.getInstrSize(int)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.getInstr(int)", "v": 2, "c": [ { "n": "avrora.sim.CodeSegment.readInstr(int)", "v": 2, "c": [] } ] } ] }, { "n": "avrora.sim.AtmelInterpreter.getIORegBit(int,int)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter.readSRAM(boolean,int)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter.readVolatile(int)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.read(int)", "v": 4, "c": [ { "n": "avrora.sim.mcu.ATMegaFamily$PinRegister.read()", "v": 4, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.read()", "v": 2, "c": [ { "n": "avrora.sim.platform.ExternalFlash$PD2Input.read()", "v": 1, "c": [ { "n": "avrora.sim.state.RegisterUtil$BoolView.getValue()", "v": 1, "c": [] } ] }, { "n": "avrora.sim.mcu.DefaultMCU$Pin.printRead(boolean)", "v": 1, "c": [ { "n": "avrora.sim.Simulator.getPrinter(java.lang.String)", "v": 1, "c": [ { "n": "avrora.sim.Simulation.getPrinter(avrora.sim.Simulator,java.lang.String)", "v": 1, "c": [ { "n": "cck.text.Verbose.isVerbose(java.lang.String)", "v": 1, "c": [ { "n": "java.util.HashMap.get(java.lang.Object)", "v": 1, "c": [ { "n": "java.util.HashMap.getNode(int,java.lang.Object)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$PUSH.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 5, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$PUSH)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter.pushByte(byte)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeDataByte(int,byte)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 5, "c": [] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$RET.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 5, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$RET)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter.popByte()", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter.getDataByte(int)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter.readSRAM(boolean,int)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter.readVolatile(int)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.read(int)", "v": 5, "c": [] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$STS.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 2, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$STS)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeDataByte(int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 2, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$OUT.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 18, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$OUT)", "v": 18, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeIORegisterByte(int,byte)", "v": 18, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 18, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 18, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 16, "c": [ { "n": "avrora.sim.mcu.SPI$SPDReg.write(byte)", "v": 4, "c": [ { "n": "avrora.sim.mcu.SPI$SPDReg$TransmitRegister.write(byte)", "v": 4, "c": [ { "n": "avrora.sim.RWRegister.write(byte)", "v": 4, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 4, "c": [] } ] } ] } ] }, { "n": "avrora.sim.mcu.SPI$SPCRReg.write(byte)", "v": 2, "c": [ { "n": "avrora.sim.RWRegister.write(byte)", "v": 1, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 1, "c": [] } ] }, { "n": "avrora.sim.mcu.SPI$SPCRReg.decode(byte)", "v": 1, "c": [ { "n": "avrora.sim.mcu.SPI$SPSReg.clearSPIF()", "v": 1, "c": [ { "n": "avrora.sim.state.RegisterUtil$BoolView.setValue(boolean)", "v": 1, "c": [ { "n": "avrora.sim.RWRegister.setValue(int)", "v": 1, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.AtmelInterpreter$SREGBehavior.write(int,int)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.enableInterrupts()", "v": 2, "c": [ { "n": "avrora.sim.InterruptTable.enableAll()", "v": 2, "c": [] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$CLI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$CLI)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.disableInterrupts()", "v": 1, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$CALL.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$CALL)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.pushByte(byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeDataByte(int,byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$CPC.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 12, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$CPC)", "v": 12, "c": [] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$ADC.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 3, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$ADC)", "v": 3, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterUnsigned(avrora.arch.legacy.LegacyRegister)", "v": 3, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$CPSE.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$CPSE)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 1, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$ADD.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 2, "c": [] }, { "n": "avrora.arch.legacy.LegacyInstr$LDI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 8, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$LDI)", "v": 8, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeRegisterByte(avrora.arch.legacy.LegacyRegister,byte)", "v": 8, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$LDS.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 4, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$LDS)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter.getDataByte(int)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter.readSRAM(boolean,int)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter.readVolatile(int)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.read(int)", "v": 4, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$AND.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 3, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$AND)", "v": 3, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 3, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$CBI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 104, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$CBI)", "v": 104, "c": [ { "n": "avrora.sim.AtmelInterpreter.setIORegBit(int,int,boolean)", "v": 104, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 104, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 104, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 104, "c": [ { "n": "avrora.sim.mcu.ATMegaFamily$PortRegister.write(byte)", "v": 101, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.write(boolean)", "v": 91, "c": [ { "n": "avrora.sim.platform.LED.write(boolean)", "v": 87, "c": [ { "n": "avrora.sim.FiniteStateMachine.transition(int)", "v": 87, "c": [ { "n": "avrora.sim.FiniteStateMachine.fireAfter(avrora.sim.util.MulticastFSMProbe,int,int)", "v": 87, "c": [ { "n": "avrora.sim.util.MulticastFSMProbe.fireAfterTransition(int,int)", "v": 87, "c": [ { "n": "avrora.monitors.LEDMonitor$Mon.fireAfterTransition(int,int)", "v": 87, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 87, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 87, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 87, "c": [ { "n": "java.io.PrintStream.newLine()", "v": 2, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 2, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "java.io.PrintStream.print(java.lang.String)", "v": 85, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 85, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 85, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 85, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 85, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 85, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 85, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 85, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 85, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 85, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 85, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.CC1000Radio$SerialConfigurationInterface$PCLKOutput.write(boolean)", "v": 1, "c": [ { "n": "avrora.sim.radio.CC1000Radio$SerialConfigurationInterface.access$200(avrora.sim.radio.CC1000Radio$SerialConfigurationInterface)", "v": 1, "c": [ { "n": "avrora.sim.radio.CC1000Radio$SerialConfigurationInterface.clockInBit()", "v": 1, "c": [ { "n": "avrora.sim.radio.CC1000Radio$RadioRegister.write(byte)", "v": 1, "c": [] } ] } ] } ] } ] }, { "n": "avrora.sim.mcu.AtmelMicrocontroller$INTPin.write(boolean)", "v": 10, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.write(boolean)", "v": 5, "c": [] }, { "n": "avrora.sim.mcu.DefaultMCU$Pin.read()", "v": 5, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.printRead(boolean)", "v": 5, "c": [ { "n": "avrora.sim.Simulator.getPrinter(java.lang.String)", "v": 5, "c": [ { "n": "avrora.sim.Simulation.getPrinter(avrora.sim.Simulator,java.lang.String)", "v": 5, "c": [ { "n": "cck.text.Verbose.isVerbose(java.lang.String)", "v": 5, "c": [ { "n": "java.util.HashMap.get(java.lang.Object)", "v": 1, "c": [ { "n": "java.util.HashMap.getNode(int,java.lang.Object)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$BRNE.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [] }, { "n": "avrora.arch.legacy.LegacyInstr$COM.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 2, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$COM)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 2, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$POP.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 16, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$POP)", "v": 16, "c": [ { "n": "avrora.sim.AtmelInterpreter.popByte()", "v": 16, "c": [ { "n": "avrora.sim.AtmelInterpreter.getDataByte(int)", "v": 16, "c": [ { "n": "avrora.sim.AtmelInterpreter.readSRAM(boolean,int)", "v": 16, "c": [ { "n": "avrora.sim.AtmelInterpreter.readVolatile(int)", "v": 16, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.read(int)", "v": 16, "c": [] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$SBIW.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 3, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$SBIW)", "v": 3, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterWord(avrora.arch.legacy.LegacyRegister)", "v": 3, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 3, "c": [] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$MOV.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 3, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$MOV)", "v": 3, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 3, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$EOR.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 3, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$EOR)", "v": 3, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 3, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$CPI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 11, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$CPI)", "v": 11, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 11, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$ADIW.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 2, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$ADIW)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterWord(avrora.arch.legacy.LegacyRegister)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 2, "c": [] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInterpreter.sleepLoop()", "v": 663, "c": [ { "n": "avrora.sim.clock.MainClock.skipAhead()", "v": 661, "c": [ { "n": "avrora.sim.clock.DeltaQueue.skipAhead()", "v": 661, "c": [ { "n": "avrora.sim.clock.DeltaQueue$Link.fire()", "v": 661, "c": [ { "n": "avrora.arch.legacy.LegacyInstr$SLEEP.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$SLEEP)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.enterSleepMode()", "v": 1, "c": [ { "n": "avrora.sim.mcu.AtmelMicrocontroller.sleep()", "v": 1, "c": [ { "n": "java.util.LinkedList.checkPositionIndex(int)", "v": 1, "c": [ { "n": "java.util.LinkedList.isPositionIndex(int)", "v": 1, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.mcu.ADC$ControlRegister$ConversionEvent.fire()", "v": 2, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister.access$100(avrora.sim.mcu.ADC$ControlRegister)", "v": 2, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister.convertVoltage()", "v": 2, "c": [ { "n": "avrora.sim.radio.CC1000Radio$RSSIOutput.getVoltage()", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.isChannelClear(int,int)", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.waitForNeighbors(long)", "v": 2, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.CC1000Radio$SPITicker.fire()", "v": 10, "c": [ { "n": "avrora.sim.clock.MainClock.insertEvent(avrora.sim.Simulator$Event,long)", "v": 2, "c": [ { "n": "avrora.sim.clock.DeltaQueue.insertEvent(avrora.sim.Simulator$Event,long)", "v": 2, "c": [] } ] }, { "n": "avrora.sim.mcu.SPI.exchange(avrora.sim.mcu.SPI$Frame)", "v": 8, "c": [ { "n": "avrora.sim.mcu.SPI.receive(avrora.sim.mcu.SPI$Frame)", "v": 8, "c": [ { "n": "avrora.sim.RWRegister.write(byte)", "v": 2, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 2, "c": [] } ] }, { "n": "avrora.sim.mcu.SPI.postSPIInterrupt()", "v": 6, "c": [ { "n": "avrora.sim.mcu.SPI$SPSReg.setSPIF()", "v": 6, "c": [ { "n": "avrora.sim.state.RegisterUtil$BoolView.setValue(boolean)", "v": 6, "c": [ { "n": "avrora.sim.RWRegister.setValue(int)", "v": 6, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 6, "c": [ { "n": "java.util.AbstractSequentialList.iterator()", "v": 4, "c": [ { "n": "java.util.AbstractList.listIterator()", "v": 4, "c": [ { "n": "java.util.LinkedList.listIterator(int)", "v": 4, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.mcu.Timer8Bit$Mode_CTC.fire()", "v": 4, "c": [ { "n": "avrora.sim.mcu.Timer8Bit.access$100(avrora.sim.mcu.Timer8Bit,avrora.sim.Simulator$Event,int)", "v": 4, "c": [ { "n": "avrora.sim.mcu.Timer8Bit.tickerFinish(avrora.sim.Simulator$Event,int)", "v": 4, "c": [ { "n": "avrora.sim.clock.DerivedClock.insertEvent(avrora.sim.Simulator$Event,long)", "v": 4, "c": [ { "n": "avrora.sim.clock.MainClock.insertEvent(avrora.sim.Simulator$Event,long)", "v": 3, "c": [ { "n": "avrora.sim.clock.DeltaQueue.insertEvent(avrora.sim.Simulator$Event,long)", "v": 3, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fire()", "v": 634, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireUnlocked(long)", "v": 63, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.access$000(avrora.sim.radio.Medium$Receiver,long)", "v": 52, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.waitForNeighbors(long)", "v": 52, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.waitForNeighbors(long)", "v": 52, "c": [ { "n": "java.util.HashMap.get(java.lang.Object)", "v": 8, "c": [ { "n": "java.util.HashMap.getNode(int,java.lang.Object)", "v": 8, "c": [] } ] }, { "n": "avrora.sim.clock.RippleSynchronizer.advance(long,avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 24, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.notifyLink(avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 24, "c": [] } ] }, { "n": "avrora.sim.clock.RippleSynchronizer.waitFor(long,avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 1, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.waitForLink(avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 1, "c": [ { "n": "java.lang.Object.wait()", "v": 1, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.deliverByte(long)", "v": 1, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.access$200(avrora.sim.radio.Medium$Receiver,long)", "v": 1, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.getIntersection(long)", "v": 1, "c": [] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver.access$100(avrora.sim.radio.Medium$Receiver,long)", "v": 10, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.earliestNewTransmission(long)", "v": 9, "c": [] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireLocked(long)", "v": 571, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.access$000(avrora.sim.radio.Medium$Receiver,long)", "v": 21, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.waitForNeighbors(long)", "v": 21, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.waitForNeighbors(long)", "v": 21, "c": [ { "n": "java.util.HashMap.get(java.lang.Object)", "v": 3, "c": [ { "n": "java.util.HashMap.getNode(int,java.lang.Object)", "v": 3, "c": [] } ] }, { "n": "avrora.sim.clock.RippleSynchronizer.advance(long,avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 5, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.notifyLink(avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 5, "c": [] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.deliverByte(long)", "v": 550, "c": [ { "n": "avrora.sim.radio.Medium$Probe$List.fireAfterReceive(avrora.sim.radio.Medium$Receiver,char)", "v": 6, "c": [] }, { "n": "avrora.sim.clock.MainClock.insertEvent(avrora.sim.Simulator$Event,long)", "v": 2, "c": [ { "n": "avrora.sim.clock.DeltaQueue.insertEvent(avrora.sim.Simulator$Event,long)", "v": 2, "c": [] } ] }, { "n": "avrora.sim.radio.Medium$Receiver.access$200(avrora.sim.radio.Medium$Receiver,long)", "v": 4, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.getIntersection(long)", "v": 4, "c": [] } ] }, { "n": "avrora.sim.radio.Medium$Probe$List.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 538, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 538, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 534, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 534, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 534, "c": [ { "n": "java.io.PrintStream.newLine()", "v": 1, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 1, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "java.io.PrintStream.print(java.lang.String)", "v": 533, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 533, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 533, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 533, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 533, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 533, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 533, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 533, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 533, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 533, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 533, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.monitors.PacketMonitor$Mon.renderPacket(java.lang.String,int,int,int)", "v": 4, "c": [ { "n": "avrora.sim.output.SimPrinter.getBuffer(int)", "v": 1, "c": [ { "n": "avrora.sim.util.SimUtil.getIDTimeString(java.lang.StringBuffer,avrora.sim.Simulator)", "v": 1, "c": [ { "n": "avrora.sim.util.SimUtil.toIDTimeString(java.lang.StringBuffer,int,avrora.sim.clock.Clock)", "v": 1, "c": [ { "n": "cck.text.StringUtil.justify(boolean,java.lang.StringBuffer,long,int)", "v": 1, "c": [ { "n": "java.lang.Long.toString(long)", "v": 1, "c": [ { "n": "java.lang.Long.getChars(long,int,char[])", "v": 1, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.monitors.PacketMonitor$Mon.renderByte(int,char,boolean,java.lang.StringBuffer)", "v": 2, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.renderByte(java.lang.StringBuffer,int,char)", "v": 2, "c": [ { "n": "cck.text.StringUtil.toHex(long,int)", "v": 2, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Transmitter$Ticker.fire()", "v": 1, "c": [ { "n": "avrora.sim.clock.MainClock.insertEvent(avrora.sim.Simulator$Event,long)", "v": 1, "c": [ { "n": "avrora.sim.clock.DeltaQueue.insertEvent(avrora.sim.Simulator$Event,long)", "v": 1, "c": [] } ] } ] }, { "n": "avrora.sim.clock.RippleSynchronizer$NotifyEvent.fire()", "v": 4, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.access$000(avrora.sim.clock.RippleSynchronizer,long,avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 2, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.advance(long,avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 2, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.notifyLink(avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 2, "c": [] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInterpreter.invokeInterrupt(long)", "v": 17, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.leaveSleepMode()", "v": 5, "c": [ { "n": "avrora.sim.mcu.AtmelMicrocontroller.wakeup()", "v": 5, "c": [ { "n": "avrora.sim.FiniteStateMachine.transition(int)", "v": 3, "c": [ { "n": "avrora.sim.FiniteStateMachine.fireBefore(avrora.sim.util.MulticastFSMProbe,int,int)", "v": 3, "c": [ { "n": "avrora.sim.util.MulticastFSMProbe.fireBeforeTransition(int,int)", "v": 3, "c": [] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInterpreter.pushPC(int)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.pushByte(byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeDataByte(int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 2, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.InterruptTable.beforeInvoke(int)", "v": 10, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister.invoke(int)", "v": 1, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister.unpostADCInterrupt()", "v": 1, "c": [ { "n": "avrora.sim.state.RegisterUtil$BoolView.setValue(boolean)", "v": 1, "c": [ { "n": "avrora.sim.RWRegister.setValue(int)", "v": 1, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 1, "c": [] } ] } ] } ] } ] }, { "n": "avrora.sim.mcu.SPI.invoke(int)", "v": 9, "c": [ { "n": "avrora.sim.mcu.SPI.unpostSPIInterrupt()", "v": 9, "c": [ { "n": "avrora.sim.mcu.SPI$SPSReg.clearSPIF()", "v": 9, "c": [ { "n": "avrora.sim.state.RegisterUtil$BoolView.setValue(boolean)", "v": 9, "c": [ { "n": "avrora.sim.RWRegister.setValue(int)", "v": 9, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 9, "c": [ { "n": "java.util.AbstractSequentialList.iterator()", "v": 5, "c": [ { "n": "java.util.AbstractList.listIterator()", "v": 5, "c": [ { "n": "java.util.LinkedList.listIterator(int)", "v": 3, "c": [ { "n": "java.util.LinkedList$ListItr.(java.util.LinkedList,int)", "v": 3, "c": [ { "n": "java.util.LinkedList.node(int)", "v": 3, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora2.jfr", "v": 1463, "c": [ { "n": "java.lang.Thread.run()", "v": 1, "c": [ { "n": "jdk.jfr.internal.PlatformRecorder$$Lambda$53.1996344612.run()", "v": 1, "c": [ { "n": "jdk.jfr.internal.PlatformRecorder.lambda$startDiskMonitor$1()", "v": 1, "c": [ { "n": "jdk.jfr.internal.PlatformRecorder.periodicTask()", "v": 1, "c": [ { "n": "jdk.jfr.internal.RequestEngine.doPeriodic()", "v": 1, "c": [ { "n": "jdk.jfr.internal.RequestEngine.run_requests(java.util.Collection)", "v": 1, "c": [] } ] } ] } ] } ] } ] }, { "n": "Harness.main(java.lang.String[])", "v": 3, "c": [ { "n": "java.lang.reflect.Method.invoke(java.lang.Object,java.lang.Object[])", "v": 3, "c": [ { "n": "sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object,java.lang.Object[])", "v": 3, "c": [ { "n": "sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object,java.lang.Object[])", "v": 3, "c": [ { "n": "sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method,java.lang.Object,java.lang.Object[])", "v": 3, "c": [ { "n": "org.dacapo.harness.TestHarness.main(java.lang.String[])", "v": 3, "c": [ { "n": "org.dacapo.harness.TestHarness.runBenchmark(java.io.File,java.io.File,java.lang.String,org.dacapo.harness.TestHarness)", "v": 3, "c": [ { "n": "org.dacapo.harness.Benchmark.run(org.dacapo.harness.Callback,java.lang.String)", "v": 3, "c": [ { "n": "org.dacapo.harness.Benchmark.startIteration()", "v": 1, "c": [ { "n": "org.dacapo.harness.Avrora.augmentSystemProperties(java.util.Properties)", "v": 1, "c": [ { "n": "java.util.Properties.setProperty(java.lang.String,java.lang.String)", "v": 1, "c": [ { "n": "java.util.Hashtable.put(java.lang.Object,java.lang.Object)", "v": 1, "c": [] } ] } ] } ] }, { "n": "org.dacapo.harness.Callback.start(java.lang.String)", "v": 1, "c": [ { "n": "org.dacapo.harness.Callback.start(java.lang.String,boolean)", "v": 1, "c": [] } ] }, { "n": "org.dacapo.harness.Avrora.iterate(java.lang.String)", "v": 1, "c": [ { "n": "java.lang.reflect.Method.invoke(java.lang.Object,java.lang.Object[])", "v": 1, "c": [ { "n": "sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object,java.lang.Object[])", "v": 1, "c": [ { "n": "sun.reflect.GeneratedMethodAccessor3.invoke(java.lang.Object,java.lang.Object[])", "v": 1, "c": [ { "n": "avrora.Main.main(java.lang.String[])", "v": 1, "c": [ { "n": "avrora.Main.runAction()", "v": 1, "c": [ { "n": "avrora.actions.SimAction.run(java.lang.String[])", "v": 1, "c": [ { "n": "avrora.actions.SimAction.exitSimulation(java.lang.Throwable)", "v": 1, "c": [ { "n": "avrora.actions.SimAction.report(java.lang.Throwable)", "v": 1, "c": [ { "n": "avrora.actions.SimAction.reportMonitors(avrora.sim.Simulation)", "v": 1, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.report()", "v": 1, "c": [ { "n": "cck.text.Terminal.print(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 1, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 1, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.SimulatorThread.run()", "v": 1459, "c": [ { "n": "avrora.sim.Simulator.start()", "v": 1459, "c": [ { "n": "avrora.sim.AtmelInterpreter.start()", "v": 1459, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.runLoop()", "v": 1459, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.fastLoop()", "v": 770, "c": [ { "n": "avrora.arch.legacy.LegacyInstr$IN.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 8, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$IN)", "v": 8, "c": [ { "n": "avrora.sim.AtmelInterpreter.getIORegisterByte(int)", "v": 8, "c": [ { "n": "avrora.sim.AtmelInterpreter.readSRAM(boolean,int)", "v": 8, "c": [ { "n": "avrora.sim.AtmelInterpreter.readVolatile(int)", "v": 7, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.read(int)", "v": 7, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$RJMP.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [] }, { "n": "avrora.sim.AtmelInterpreter.commit()", "v": 294, "c": [ { "n": "avrora.sim.clock.MainClock.advance(long)", "v": 294, "c": [ { "n": "avrora.sim.clock.DeltaQueue.advance(long)", "v": 294, "c": [ { "n": "avrora.sim.clock.DeltaQueue.advanceSlow(long)", "v": 294, "c": [ { "n": "avrora.sim.clock.DeltaQueue$Link.fire()", "v": 294, "c": [ { "n": "avrora.sim.radio.CC1000Radio$SPITicker.fire()", "v": 1, "c": [ { "n": "avrora.sim.mcu.SPI.exchange(avrora.sim.mcu.SPI$Frame)", "v": 1, "c": [ { "n": "avrora.sim.mcu.SPI.receive(avrora.sim.mcu.SPI$Frame)", "v": 1, "c": [ { "n": "avrora.sim.mcu.SPI.postSPIInterrupt()", "v": 1, "c": [ { "n": "avrora.sim.mcu.SPI$SPSReg.setSPIF()", "v": 1, "c": [ { "n": "avrora.sim.state.RegisterUtil$BoolView.setValue(boolean)", "v": 1, "c": [ { "n": "avrora.sim.RWRegister.setValue(int)", "v": 1, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 1, "c": [ { "n": "java.util.AbstractSequentialList.iterator()", "v": 1, "c": [ { "n": "java.util.AbstractList.listIterator()", "v": 1, "c": [ { "n": "java.util.LinkedList.listIterator(int)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.mcu.Timer8Bit$Mode_CTC.fire()", "v": 1, "c": [ { "n": "avrora.sim.mcu.Timer8Bit.access$100(avrora.sim.mcu.Timer8Bit,avrora.sim.Simulator$Event,int)", "v": 1, "c": [ { "n": "avrora.sim.mcu.Timer8Bit.tickerFinish(avrora.sim.Simulator$Event,int)", "v": 1, "c": [ { "n": "avrora.sim.clock.DerivedClock.insertEvent(avrora.sim.Simulator$Event,long)", "v": 1, "c": [ { "n": "avrora.sim.clock.MainClock.insertEvent(avrora.sim.Simulator$Event,long)", "v": 1, "c": [ { "n": "avrora.sim.clock.DeltaQueue.insertEvent(avrora.sim.Simulator$Event,long)", "v": 1, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fire()", "v": 200, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireUnlocked(long)", "v": 4, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.access$000(avrora.sim.radio.Medium$Receiver,long)", "v": 4, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.waitForNeighbors(long)", "v": 4, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.waitForNeighbors(long)", "v": 4, "c": [ { "n": "java.util.HashMap.get(java.lang.Object)", "v": 1, "c": [ { "n": "java.util.HashMap.getNode(int,java.lang.Object)", "v": 1, "c": [] } ] }, { "n": "avrora.sim.clock.RippleSynchronizer.advance(long,avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 2, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.notifyLink(avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 2, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireLocked(long)", "v": 196, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.access$000(avrora.sim.radio.Medium$Receiver,long)", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.waitForNeighbors(long)", "v": 2, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.waitForNeighbors(long)", "v": 2, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.advance(long,avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 1, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.notifyLink(avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 1, "c": [] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.deliverByte(long)", "v": 194, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.access$200(avrora.sim.radio.Medium$Receiver,long)", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.getIntersection(long)", "v": 2, "c": [] } ] }, { "n": "avrora.sim.radio.Medium$Probe$List.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 192, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 192, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 189, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 189, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 189, "c": [ { "n": "java.io.PrintStream.newLine()", "v": 1, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 1, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "java.io.PrintStream.print(java.lang.String)", "v": 188, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 188, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 188, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 188, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 188, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 188, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 188, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 188, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 188, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 188, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 188, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.monitors.PacketMonitor$Mon.renderPacket(java.lang.String,int,int,int)", "v": 3, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.appendTime(java.lang.StringBuffer)", "v": 1, "c": [ { "n": "cck.text.StringUtil.toFixedFloat(float,int)", "v": 1, "c": [] } ] }, { "n": "avrora.monitors.PacketMonitor$Mon.renderByte(int,char,boolean,java.lang.StringBuffer)", "v": 1, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.renderByte(java.lang.StringBuffer,int,char)", "v": 1, "c": [ { "n": "cck.text.StringUtil.toHex(long,int)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Transmitter$Ticker.fire()", "v": 92, "c": [ { "n": "avrora.sim.radio.Medium$Probe$List.fireBeforeTransmitEnd(avrora.sim.radio.Medium$Transmitter)", "v": 92, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireBeforeTransmitEnd(avrora.sim.radio.Medium$Transmitter)", "v": 92, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 90, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 90, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 90, "c": [ { "n": "java.io.PrintStream.newLine()", "v": 1, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 1, "c": [] } ] } ] } ] } ] }, { "n": "java.io.PrintStream.print(java.lang.String)", "v": 89, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 89, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 88, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 88, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 88, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 88, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 88, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 88, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 88, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 88, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 88, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "java.io.BufferedWriter.flushBuffer()", "v": 1, "c": [ { "n": "java.io.OutputStreamWriter.write(char[],int,int)", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.write(char[],int,int)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.monitors.PacketMonitor$Mon.renderPacket(java.lang.String,int,int,int)", "v": 2, "c": [ { "n": "cck.text.Terminal.append(int,java.lang.StringBuffer,java.lang.String)", "v": 1, "c": [ { "n": "java.lang.StringBuffer.append(java.lang.String)", "v": 1, "c": [ { "n": "java.lang.AbstractStringBuilder.append(java.lang.String)", "v": 1, "c": [] } ] } ] }, { "n": "avrora.sim.output.SimPrinter.getBuffer(int)", "v": 1, "c": [ { "n": "avrora.sim.util.SimUtil.getIDTimeString(java.lang.StringBuffer,avrora.sim.Simulator)", "v": 1, "c": [ { "n": "avrora.sim.util.SimUtil.toIDTimeString(java.lang.StringBuffer,int,avrora.sim.clock.Clock)", "v": 1, "c": [ { "n": "cck.text.StringUtil.justify(boolean,java.lang.StringBuffer,long,int)", "v": 1, "c": [ { "n": "cck.text.StringUtil.justify(boolean,java.lang.StringBuffer,java.lang.String,int)", "v": 1, "c": [ { "n": "java.lang.StringBuffer.append(java.lang.String)", "v": 1, "c": [ { "n": "java.lang.AbstractStringBuilder.append(java.lang.String)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$SBI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 66, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$SBI)", "v": 66, "c": [ { "n": "avrora.sim.AtmelInterpreter.setIORegBit(int,int,boolean)", "v": 66, "c": [ { "n": "avrora.sim.AtmelInterpreter.readSRAM(boolean,int)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.readVolatile(int)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.read(int)", "v": 2, "c": [] } ] } ] }, { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 64, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 64, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 64, "c": [ { "n": "avrora.sim.mcu.ATMegaFamily$DirectionRegister.write(byte)", "v": 1, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.setOutputDir(boolean)", "v": 1, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.write(boolean)", "v": 1, "c": [ { "n": "avrora.sim.platform.LED.write(boolean)", "v": 1, "c": [ { "n": "avrora.sim.FiniteStateMachine.transition(int)", "v": 1, "c": [ { "n": "avrora.sim.FiniteStateMachine.fireAfter(avrora.sim.util.MulticastFSMProbe,int,int)", "v": 1, "c": [ { "n": "avrora.sim.util.MulticastFSMProbe.fireAfterTransition(int,int)", "v": 1, "c": [ { "n": "avrora.monitors.LEDMonitor$Mon.fireAfterTransition(int,int)", "v": 1, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 1, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 1, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 1, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.mcu.ADC$ControlRegister.write(byte)", "v": 2, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister.startConversion()", "v": 1, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister.insertConversion()", "v": 1, "c": [] } ] }, { "n": "avrora.sim.mcu.ADC$ControlRegister.unpostADCInterrupt()", "v": 1, "c": [ { "n": "avrora.sim.state.RegisterUtil$BoolView.setValue(boolean)", "v": 1, "c": [ { "n": "avrora.sim.RWRegister.setValue(int)", "v": 1, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 1, "c": [] } ] } ] } ] } ] }, { "n": "avrora.sim.mcu.ATMegaFamily$PortRegister.write(byte)", "v": 57, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.write(boolean)", "v": 53, "c": [ { "n": "avrora.sim.platform.LED.write(boolean)", "v": 53, "c": [ { "n": "avrora.sim.FiniteStateMachine.transition(int)", "v": 53, "c": [ { "n": "avrora.sim.FiniteStateMachine.fireAfter(avrora.sim.util.MulticastFSMProbe,int,int)", "v": 53, "c": [ { "n": "avrora.sim.util.MulticastFSMProbe.fireAfterTransition(int,int)", "v": 53, "c": [ { "n": "avrora.monitors.LEDMonitor$Mon.fireAfterTransition(int,int)", "v": 53, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 51, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 51, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 51, "c": [ { "n": "java.io.PrintStream.newLine()", "v": 2, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 2, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 2, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 2, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 2, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "java.io.PrintStream.print(java.lang.String)", "v": 49, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 49, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 49, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 49, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 49, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 49, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 49, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 49, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 49, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 49, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 49, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.output.SimPrinter.getBuffer(int)", "v": 2, "c": [ { "n": "avrora.sim.util.SimUtil.getIDTimeString(java.lang.StringBuffer,avrora.sim.Simulator)", "v": 2, "c": [ { "n": "avrora.sim.util.SimUtil.toIDTimeString(java.lang.StringBuffer,int,avrora.sim.clock.Clock)", "v": 2, "c": [ { "n": "cck.text.StringUtil.justify(boolean,java.lang.StringBuffer,long,int)", "v": 2, "c": [ { "n": "java.lang.Long.toString(long)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.mcu.AtmelMicrocontroller$INTPin.write(boolean)", "v": 4, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.write(boolean)", "v": 2, "c": [] }, { "n": "avrora.sim.mcu.DefaultMCU$Pin.read()", "v": 2, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.printRead(boolean)", "v": 2, "c": [ { "n": "avrora.sim.Simulator.getPrinter(java.lang.String)", "v": 2, "c": [ { "n": "avrora.sim.Simulation.getPrinter(avrora.sim.Simulator,java.lang.String)", "v": 2, "c": [ { "n": "cck.text.Verbose.isVerbose(java.lang.String)", "v": 2, "c": [ { "n": "java.util.HashMap.get(java.lang.Object)", "v": 1, "c": [ { "n": "java.util.HashMap.getNode(int,java.lang.Object)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$RETI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 6, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$RETI)", "v": 6, "c": [ { "n": "avrora.sim.AtmelInterpreter.popByte()", "v": 6, "c": [ { "n": "avrora.sim.AtmelInterpreter.getDataByte(int)", "v": 6, "c": [ { "n": "avrora.sim.AtmelInterpreter.readSRAM(boolean,int)", "v": 6, "c": [ { "n": "avrora.sim.AtmelInterpreter.readVolatile(int)", "v": 6, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.read(int)", "v": 6, "c": [] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$BREQ.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [] }, { "n": "avrora.arch.legacy.LegacyInstr$BRPL.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [] }, { "n": "avrora.arch.legacy.LegacyInstr$LPM.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$LPM)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterWord(avrora.arch.legacy.LegacyRegister)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 1, "c": [] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$SUBI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 3, "c": [] }, { "n": "avrora.arch.legacy.LegacyInstr$ST.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$ST)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeDataByte(int,byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 1, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$SLEEP.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 4, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$SLEEP)", "v": 4, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.enterSleepMode()", "v": 4, "c": [ { "n": "avrora.sim.mcu.AtmelMicrocontroller.sleep()", "v": 3, "c": [ { "n": "avrora.sim.FiniteStateMachine.transition(int)", "v": 2, "c": [ { "n": "avrora.sim.FiniteStateMachine.fireBefore(avrora.sim.util.MulticastFSMProbe,int,int)", "v": 2, "c": [ { "n": "avrora.sim.util.MulticastFSMProbe.fireBeforeTransition(int,int)", "v": 2, "c": [] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$ORI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 4, "c": [] }, { "n": "avrora.arch.legacy.LegacyInstr$CP.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 4, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$CP)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 4, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$SBIC.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 6, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$SBIC)", "v": 6, "c": [ { "n": "avrora.sim.AtmelInterpreter.getInstrSize(int)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.getInstr(int)", "v": 2, "c": [ { "n": "avrora.sim.CodeSegment.readInstr(int)", "v": 2, "c": [] } ] } ] }, { "n": "avrora.sim.AtmelInterpreter.getIORegBit(int,int)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter.readSRAM(boolean,int)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter.readVolatile(int)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.read(int)", "v": 4, "c": [ { "n": "avrora.sim.mcu.ATMegaFamily$PinRegister.read()", "v": 4, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.read()", "v": 2, "c": [ { "n": "avrora.sim.platform.ExternalFlash$PD2Input.read()", "v": 1, "c": [ { "n": "avrora.sim.state.RegisterUtil$BoolView.getValue()", "v": 1, "c": [] } ] }, { "n": "avrora.sim.mcu.DefaultMCU$Pin.printRead(boolean)", "v": 1, "c": [ { "n": "avrora.sim.Simulator.getPrinter(java.lang.String)", "v": 1, "c": [ { "n": "avrora.sim.Simulation.getPrinter(avrora.sim.Simulator,java.lang.String)", "v": 1, "c": [ { "n": "cck.text.Verbose.isVerbose(java.lang.String)", "v": 1, "c": [ { "n": "java.util.HashMap.get(java.lang.Object)", "v": 1, "c": [ { "n": "java.util.HashMap.getNode(int,java.lang.Object)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$PUSH.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 5, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$PUSH)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter.pushByte(byte)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeDataByte(int,byte)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 5, "c": [] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$RET.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 5, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$RET)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter.popByte()", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter.getDataByte(int)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter.readSRAM(boolean,int)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter.readVolatile(int)", "v": 5, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.read(int)", "v": 5, "c": [] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$STS.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 2, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$STS)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeDataByte(int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 2, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$OUT.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 18, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$OUT)", "v": 18, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeIORegisterByte(int,byte)", "v": 18, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 18, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 18, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 16, "c": [ { "n": "avrora.sim.mcu.SPI$SPDReg.write(byte)", "v": 4, "c": [ { "n": "avrora.sim.mcu.SPI$SPDReg$TransmitRegister.write(byte)", "v": 4, "c": [ { "n": "avrora.sim.RWRegister.write(byte)", "v": 4, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 4, "c": [] } ] } ] } ] }, { "n": "avrora.sim.mcu.SPI$SPCRReg.write(byte)", "v": 2, "c": [ { "n": "avrora.sim.RWRegister.write(byte)", "v": 1, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 1, "c": [] } ] }, { "n": "avrora.sim.mcu.SPI$SPCRReg.decode(byte)", "v": 1, "c": [ { "n": "avrora.sim.mcu.SPI$SPSReg.clearSPIF()", "v": 1, "c": [ { "n": "avrora.sim.state.RegisterUtil$BoolView.setValue(boolean)", "v": 1, "c": [ { "n": "avrora.sim.RWRegister.setValue(int)", "v": 1, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.AtmelInterpreter$SREGBehavior.write(int,int)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.enableInterrupts()", "v": 2, "c": [ { "n": "avrora.sim.InterruptTable.enableAll()", "v": 2, "c": [] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$CLI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$CLI)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.disableInterrupts()", "v": 1, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$CALL.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$CALL)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.pushByte(byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeDataByte(int,byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$CPC.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 12, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$CPC)", "v": 12, "c": [] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$ADC.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 3, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$ADC)", "v": 3, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterUnsigned(avrora.arch.legacy.LegacyRegister)", "v": 3, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$CPSE.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$CPSE)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 1, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$ADD.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 2, "c": [] }, { "n": "avrora.arch.legacy.LegacyInstr$LDI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 8, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$LDI)", "v": 8, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeRegisterByte(avrora.arch.legacy.LegacyRegister,byte)", "v": 8, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$LDS.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 4, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$LDS)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter.getDataByte(int)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter.readSRAM(boolean,int)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter.readVolatile(int)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.read(int)", "v": 4, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$AND.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 3, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$AND)", "v": 3, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 3, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$CBI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 104, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$CBI)", "v": 104, "c": [ { "n": "avrora.sim.AtmelInterpreter.setIORegBit(int,int,boolean)", "v": 104, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 104, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 104, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 104, "c": [ { "n": "avrora.sim.mcu.ATMegaFamily$PortRegister.write(byte)", "v": 101, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.write(boolean)", "v": 91, "c": [ { "n": "avrora.sim.platform.LED.write(boolean)", "v": 87, "c": [ { "n": "avrora.sim.FiniteStateMachine.transition(int)", "v": 87, "c": [ { "n": "avrora.sim.FiniteStateMachine.fireAfter(avrora.sim.util.MulticastFSMProbe,int,int)", "v": 87, "c": [ { "n": "avrora.sim.util.MulticastFSMProbe.fireAfterTransition(int,int)", "v": 87, "c": [ { "n": "avrora.monitors.LEDMonitor$Mon.fireAfterTransition(int,int)", "v": 87, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 87, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 87, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 87, "c": [ { "n": "java.io.PrintStream.newLine()", "v": 2, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 2, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "java.io.PrintStream.print(java.lang.String)", "v": 85, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 85, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 85, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 85, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 85, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 85, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 85, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 85, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 85, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 85, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 85, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.CC1000Radio$SerialConfigurationInterface$PCLKOutput.write(boolean)", "v": 1, "c": [ { "n": "avrora.sim.radio.CC1000Radio$SerialConfigurationInterface.access$200(avrora.sim.radio.CC1000Radio$SerialConfigurationInterface)", "v": 1, "c": [ { "n": "avrora.sim.radio.CC1000Radio$SerialConfigurationInterface.clockInBit()", "v": 1, "c": [ { "n": "avrora.sim.radio.CC1000Radio$RadioRegister.write(byte)", "v": 1, "c": [] } ] } ] } ] } ] }, { "n": "avrora.sim.mcu.AtmelMicrocontroller$INTPin.write(boolean)", "v": 10, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.write(boolean)", "v": 5, "c": [] }, { "n": "avrora.sim.mcu.DefaultMCU$Pin.read()", "v": 5, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.printRead(boolean)", "v": 5, "c": [ { "n": "avrora.sim.Simulator.getPrinter(java.lang.String)", "v": 5, "c": [ { "n": "avrora.sim.Simulation.getPrinter(avrora.sim.Simulator,java.lang.String)", "v": 5, "c": [ { "n": "cck.text.Verbose.isVerbose(java.lang.String)", "v": 5, "c": [ { "n": "java.util.HashMap.get(java.lang.Object)", "v": 1, "c": [ { "n": "java.util.HashMap.getNode(int,java.lang.Object)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$BRNE.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [] }, { "n": "avrora.arch.legacy.LegacyInstr$COM.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 2, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$COM)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 2, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$POP.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 16, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$POP)", "v": 16, "c": [ { "n": "avrora.sim.AtmelInterpreter.popByte()", "v": 16, "c": [ { "n": "avrora.sim.AtmelInterpreter.getDataByte(int)", "v": 16, "c": [ { "n": "avrora.sim.AtmelInterpreter.readSRAM(boolean,int)", "v": 16, "c": [ { "n": "avrora.sim.AtmelInterpreter.readVolatile(int)", "v": 16, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.read(int)", "v": 16, "c": [] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$SBIW.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 3, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$SBIW)", "v": 3, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterWord(avrora.arch.legacy.LegacyRegister)", "v": 3, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 3, "c": [] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$MOV.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 3, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$MOV)", "v": 3, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 3, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$EOR.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 3, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$EOR)", "v": 3, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 3, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$CPI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 11, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$CPI)", "v": 11, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 11, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$ADIW.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 2, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$ADIW)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterWord(avrora.arch.legacy.LegacyRegister)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.getRegisterByte(avrora.arch.legacy.LegacyRegister)", "v": 2, "c": [] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInterpreter.sleepLoop()", "v": 663, "c": [ { "n": "avrora.sim.clock.MainClock.skipAhead()", "v": 661, "c": [ { "n": "avrora.sim.clock.DeltaQueue.skipAhead()", "v": 661, "c": [ { "n": "avrora.sim.clock.DeltaQueue$Link.fire()", "v": 661, "c": [ { "n": "avrora.arch.legacy.LegacyInstr$SLEEP.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$SLEEP)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.enterSleepMode()", "v": 1, "c": [ { "n": "avrora.sim.mcu.AtmelMicrocontroller.sleep()", "v": 1, "c": [ { "n": "java.util.LinkedList.checkPositionIndex(int)", "v": 1, "c": [ { "n": "java.util.LinkedList.isPositionIndex(int)", "v": 1, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.mcu.ADC$ControlRegister$ConversionEvent.fire()", "v": 2, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister.access$100(avrora.sim.mcu.ADC$ControlRegister)", "v": 2, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister.convertVoltage()", "v": 2, "c": [ { "n": "avrora.sim.radio.CC1000Radio$RSSIOutput.getVoltage()", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.isChannelClear(int,int)", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.waitForNeighbors(long)", "v": 2, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.CC1000Radio$SPITicker.fire()", "v": 10, "c": [ { "n": "avrora.sim.clock.MainClock.insertEvent(avrora.sim.Simulator$Event,long)", "v": 2, "c": [ { "n": "avrora.sim.clock.DeltaQueue.insertEvent(avrora.sim.Simulator$Event,long)", "v": 2, "c": [] } ] }, { "n": "avrora.sim.mcu.SPI.exchange(avrora.sim.mcu.SPI$Frame)", "v": 8, "c": [ { "n": "avrora.sim.mcu.SPI.receive(avrora.sim.mcu.SPI$Frame)", "v": 8, "c": [ { "n": "avrora.sim.RWRegister.write(byte)", "v": 2, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 2, "c": [] } ] }, { "n": "avrora.sim.mcu.SPI.postSPIInterrupt()", "v": 6, "c": [ { "n": "avrora.sim.mcu.SPI$SPSReg.setSPIF()", "v": 6, "c": [ { "n": "avrora.sim.state.RegisterUtil$BoolView.setValue(boolean)", "v": 6, "c": [ { "n": "avrora.sim.RWRegister.setValue(int)", "v": 6, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 6, "c": [ { "n": "java.util.AbstractSequentialList.iterator()", "v": 4, "c": [ { "n": "java.util.AbstractList.listIterator()", "v": 4, "c": [ { "n": "java.util.LinkedList.listIterator(int)", "v": 4, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.mcu.Timer8Bit$Mode_CTC.fire()", "v": 4, "c": [ { "n": "avrora.sim.mcu.Timer8Bit.access$100(avrora.sim.mcu.Timer8Bit,avrora.sim.Simulator$Event,int)", "v": 4, "c": [ { "n": "avrora.sim.mcu.Timer8Bit.tickerFinish(avrora.sim.Simulator$Event,int)", "v": 4, "c": [ { "n": "avrora.sim.clock.DerivedClock.insertEvent(avrora.sim.Simulator$Event,long)", "v": 4, "c": [ { "n": "avrora.sim.clock.MainClock.insertEvent(avrora.sim.Simulator$Event,long)", "v": 3, "c": [ { "n": "avrora.sim.clock.DeltaQueue.insertEvent(avrora.sim.Simulator$Event,long)", "v": 3, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fire()", "v": 634, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireUnlocked(long)", "v": 63, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.access$000(avrora.sim.radio.Medium$Receiver,long)", "v": 52, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.waitForNeighbors(long)", "v": 52, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.waitForNeighbors(long)", "v": 52, "c": [ { "n": "java.util.HashMap.get(java.lang.Object)", "v": 8, "c": [ { "n": "java.util.HashMap.getNode(int,java.lang.Object)", "v": 8, "c": [] } ] }, { "n": "avrora.sim.clock.RippleSynchronizer.advance(long,avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 24, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.notifyLink(avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 24, "c": [] } ] }, { "n": "avrora.sim.clock.RippleSynchronizer.waitFor(long,avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 1, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.waitForLink(avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 1, "c": [ { "n": "java.lang.Object.wait()", "v": 1, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.deliverByte(long)", "v": 1, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.access$200(avrora.sim.radio.Medium$Receiver,long)", "v": 1, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.getIntersection(long)", "v": 1, "c": [] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver.access$100(avrora.sim.radio.Medium$Receiver,long)", "v": 10, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.earliestNewTransmission(long)", "v": 9, "c": [] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireLocked(long)", "v": 571, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.access$000(avrora.sim.radio.Medium$Receiver,long)", "v": 21, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.waitForNeighbors(long)", "v": 21, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.waitForNeighbors(long)", "v": 21, "c": [ { "n": "java.util.HashMap.get(java.lang.Object)", "v": 3, "c": [ { "n": "java.util.HashMap.getNode(int,java.lang.Object)", "v": 3, "c": [] } ] }, { "n": "avrora.sim.clock.RippleSynchronizer.advance(long,avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 5, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.notifyLink(avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 5, "c": [] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.deliverByte(long)", "v": 550, "c": [ { "n": "avrora.sim.radio.Medium$Probe$List.fireAfterReceive(avrora.sim.radio.Medium$Receiver,char)", "v": 6, "c": [] }, { "n": "avrora.sim.clock.MainClock.insertEvent(avrora.sim.Simulator$Event,long)", "v": 2, "c": [ { "n": "avrora.sim.clock.DeltaQueue.insertEvent(avrora.sim.Simulator$Event,long)", "v": 2, "c": [] } ] }, { "n": "avrora.sim.radio.Medium$Receiver.access$200(avrora.sim.radio.Medium$Receiver,long)", "v": 4, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.getIntersection(long)", "v": 4, "c": [] } ] }, { "n": "avrora.sim.radio.Medium$Probe$List.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 538, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 538, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 534, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 534, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 534, "c": [ { "n": "java.io.PrintStream.newLine()", "v": 1, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 1, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "java.io.PrintStream.print(java.lang.String)", "v": 533, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 533, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 533, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 533, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 533, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 533, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 533, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 533, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 533, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 533, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 533, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.monitors.PacketMonitor$Mon.renderPacket(java.lang.String,int,int,int)", "v": 4, "c": [ { "n": "avrora.sim.output.SimPrinter.getBuffer(int)", "v": 1, "c": [ { "n": "avrora.sim.util.SimUtil.getIDTimeString(java.lang.StringBuffer,avrora.sim.Simulator)", "v": 1, "c": [ { "n": "avrora.sim.util.SimUtil.toIDTimeString(java.lang.StringBuffer,int,avrora.sim.clock.Clock)", "v": 1, "c": [ { "n": "cck.text.StringUtil.justify(boolean,java.lang.StringBuffer,long,int)", "v": 1, "c": [ { "n": "java.lang.Long.toString(long)", "v": 1, "c": [ { "n": "java.lang.Long.getChars(long,int,char[])", "v": 1, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.monitors.PacketMonitor$Mon.renderByte(int,char,boolean,java.lang.StringBuffer)", "v": 2, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.renderByte(java.lang.StringBuffer,int,char)", "v": 2, "c": [ { "n": "cck.text.StringUtil.toHex(long,int)", "v": 2, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Transmitter$Ticker.fire()", "v": 1, "c": [ { "n": "avrora.sim.clock.MainClock.insertEvent(avrora.sim.Simulator$Event,long)", "v": 1, "c": [ { "n": "avrora.sim.clock.DeltaQueue.insertEvent(avrora.sim.Simulator$Event,long)", "v": 1, "c": [] } ] } ] }, { "n": "avrora.sim.clock.RippleSynchronizer$NotifyEvent.fire()", "v": 4, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.access$000(avrora.sim.clock.RippleSynchronizer,long,avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 2, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.advance(long,avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 2, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.notifyLink(avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 2, "c": [] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInterpreter.invokeInterrupt(long)", "v": 17, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.leaveSleepMode()", "v": 5, "c": [ { "n": "avrora.sim.mcu.AtmelMicrocontroller.wakeup()", "v": 5, "c": [ { "n": "avrora.sim.FiniteStateMachine.transition(int)", "v": 3, "c": [ { "n": "avrora.sim.FiniteStateMachine.fireBefore(avrora.sim.util.MulticastFSMProbe,int,int)", "v": 3, "c": [ { "n": "avrora.sim.util.MulticastFSMProbe.fireBeforeTransition(int,int)", "v": 3, "c": [] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInterpreter.pushPC(int)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.pushByte(byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeDataByte(int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 2, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.InterruptTable.beforeInvoke(int)", "v": 10, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister.invoke(int)", "v": 1, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister.unpostADCInterrupt()", "v": 1, "c": [ { "n": "avrora.sim.state.RegisterUtil$BoolView.setValue(boolean)", "v": 1, "c": [ { "n": "avrora.sim.RWRegister.setValue(int)", "v": 1, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 1, "c": [] } ] } ] } ] } ] }, { "n": "avrora.sim.mcu.SPI.invoke(int)", "v": 9, "c": [ { "n": "avrora.sim.mcu.SPI.unpostSPIInterrupt()", "v": 9, "c": [ { "n": "avrora.sim.mcu.SPI$SPSReg.clearSPIF()", "v": 9, "c": [ { "n": "avrora.sim.state.RegisterUtil$BoolView.setValue(boolean)", "v": 9, "c": [ { "n": "avrora.sim.RWRegister.setValue(int)", "v": 9, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 9, "c": [ { "n": "java.util.AbstractSequentialList.iterator()", "v": 5, "c": [ { "n": "java.util.AbstractList.listIterator()", "v": 5, "c": [ { "n": "java.util.LinkedList.listIterator(int)", "v": 3, "c": [ { "n": "java.util.LinkedList$ListItr.(java.util.LinkedList,int)", "v": 3, "c": [ { "n": "java.util.LinkedList.node(int)", "v": 3, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, "1713159115349": { "n": "all", "v": 3, "c": [ { "n": "avrora.jfr", "v": 2, "c": [ { "n": "avrora.sim.SimulatorThread.run()", "v": 2, "c": [ { "n": "avrora.sim.Simulator.start()", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.start()", "v": 2, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.runLoop()", "v": 2, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.sleepLoop()", "v": 2, "c": [ { "n": "avrora.sim.clock.MainClock.skipAhead()", "v": 2, "c": [ { "n": "avrora.sim.clock.DeltaQueue.skipAhead()", "v": 2, "c": [ { "n": "avrora.sim.clock.DeltaQueue$Link.fire()", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fire()", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireLocked(long)", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.deliverByte(long)", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Probe$List.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 2, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 2, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 2, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 2, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 2, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 2, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 2, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 2, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 2, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 2, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 2, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora2.jfr", "v": 1, "c": [ { "n": "avrora.sim.SimulatorThread.run()", "v": 1, "c": [ { "n": "avrora.sim.Simulator.start()", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.start()", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.runLoop()", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.sleepLoop()", "v": 1, "c": [ { "n": "avrora.sim.clock.MainClock.skipAhead()", "v": 1, "c": [ { "n": "avrora.sim.clock.DeltaQueue.skipAhead()", "v": 1, "c": [ { "n": "avrora.sim.clock.DeltaQueue$Link.fire()", "v": 1, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fire()", "v": 1, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireLocked(long)", "v": 1, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.deliverByte(long)", "v": 1, "c": [ { "n": "avrora.sim.radio.Medium$Probe$List.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 1, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 1, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 1, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 1, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 1, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, "1713159117349": { "n": "all", "v": 54, "c": [ { "n": "avrora.jfr", "v": 36, "c": [ { "n": "avrora.sim.SimulatorThread.run()", "v": 36, "c": [ { "n": "avrora.sim.Simulator.start()", "v": 36, "c": [ { "n": "avrora.sim.AtmelInterpreter.start()", "v": 36, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.runLoop()", "v": 36, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.fastLoop()", "v": 8, "c": [ { "n": "avrora.arch.legacy.LegacyInstr$SBI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 2, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$SBI)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.setIORegBit(int,int,boolean)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 2, "c": [ { "n": "avrora.sim.mcu.ATMegaFamily$PortRegister.write(byte)", "v": 2, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.write(boolean)", "v": 2, "c": [ { "n": "avrora.sim.platform.LED.write(boolean)", "v": 2, "c": [ { "n": "avrora.sim.FiniteStateMachine.transition(int)", "v": 2, "c": [ { "n": "avrora.sim.FiniteStateMachine.fireAfter(avrora.sim.util.MulticastFSMProbe,int,int)", "v": 2, "c": [ { "n": "avrora.sim.util.MulticastFSMProbe.fireAfterTransition(int,int)", "v": 2, "c": [ { "n": "avrora.monitors.LEDMonitor$Mon.fireAfterTransition(int,int)", "v": 2, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 2, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 2, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 2, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 2, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 2, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 2, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 2, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 2, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 2, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.AtmelInterpreter.commit()", "v": 2, "c": [ { "n": "avrora.sim.clock.MainClock.advance(long)", "v": 2, "c": [ { "n": "avrora.sim.clock.DeltaQueue.advance(long)", "v": 2, "c": [ { "n": "avrora.sim.clock.DeltaQueue.advanceSlow(long)", "v": 2, "c": [ { "n": "avrora.sim.clock.DeltaQueue$Link.fire()", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fire()", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireLocked(long)", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.deliverByte(long)", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Probe$List.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 2, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 2, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 2, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 2, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 2, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 2, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 2, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 2, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 2, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 2, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 2, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$OUT.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 2, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$OUT)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeIORegisterByte(int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 2, "c": [ { "n": "avrora.sim.mcu.SPI$SPDReg.write(byte)", "v": 2, "c": [ { "n": "avrora.sim.mcu.SPI$SPDReg$TransmitRegister.write(byte)", "v": 2, "c": [ { "n": "avrora.sim.RWRegister.write(byte)", "v": 2, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 2, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$LDI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 2, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$LDI)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeRegisterByte(avrora.arch.legacy.LegacyRegister,byte)", "v": 2, "c": [] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInterpreter.sleepLoop()", "v": 26, "c": [ { "n": "avrora.sim.clock.MainClock.skipAhead()", "v": 26, "c": [ { "n": "avrora.sim.clock.DeltaQueue.skipAhead()", "v": 26, "c": [ { "n": "avrora.sim.clock.DeltaQueue$Link.fire()", "v": 26, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fire()", "v": 26, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireUnlocked(long)", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.access$000(avrora.sim.radio.Medium$Receiver,long)", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.waitForNeighbors(long)", "v": 2, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.waitForNeighbors(long)", "v": 2, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.advance(long,avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 2, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.notifyLink(avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 2, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireLocked(long)", "v": 24, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.access$000(avrora.sim.radio.Medium$Receiver,long)", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.waitForNeighbors(long)", "v": 2, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.waitForNeighbors(long)", "v": 2, "c": [] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.deliverByte(long)", "v": 22, "c": [ { "n": "avrora.sim.radio.Medium$Probe$List.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 22, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 22, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 22, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 22, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 22, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 22, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 22, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 22, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 22, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 22, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 22, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 22, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 22, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 22, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 22, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 22, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora2.jfr", "v": 18, "c": [ { "n": "avrora.sim.SimulatorThread.run()", "v": 18, "c": [ { "n": "avrora.sim.Simulator.start()", "v": 18, "c": [ { "n": "avrora.sim.AtmelInterpreter.start()", "v": 18, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.runLoop()", "v": 18, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.fastLoop()", "v": 4, "c": [ { "n": "avrora.arch.legacy.LegacyInstr$SBI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$SBI)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.setIORegBit(int,int,boolean)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 1, "c": [ { "n": "avrora.sim.mcu.ATMegaFamily$PortRegister.write(byte)", "v": 1, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.write(boolean)", "v": 1, "c": [ { "n": "avrora.sim.platform.LED.write(boolean)", "v": 1, "c": [ { "n": "avrora.sim.FiniteStateMachine.transition(int)", "v": 1, "c": [ { "n": "avrora.sim.FiniteStateMachine.fireAfter(avrora.sim.util.MulticastFSMProbe,int,int)", "v": 1, "c": [ { "n": "avrora.sim.util.MulticastFSMProbe.fireAfterTransition(int,int)", "v": 1, "c": [ { "n": "avrora.monitors.LEDMonitor$Mon.fireAfterTransition(int,int)", "v": 1, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 1, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 1, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 1, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.AtmelInterpreter.commit()", "v": 1, "c": [ { "n": "avrora.sim.clock.MainClock.advance(long)", "v": 1, "c": [ { "n": "avrora.sim.clock.DeltaQueue.advance(long)", "v": 1, "c": [ { "n": "avrora.sim.clock.DeltaQueue.advanceSlow(long)", "v": 1, "c": [ { "n": "avrora.sim.clock.DeltaQueue$Link.fire()", "v": 1, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fire()", "v": 1, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireLocked(long)", "v": 1, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.deliverByte(long)", "v": 1, "c": [ { "n": "avrora.sim.radio.Medium$Probe$List.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 1, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 1, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 1, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 1, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 1, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$OUT.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$OUT)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeIORegisterByte(int,byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 1, "c": [ { "n": "avrora.sim.mcu.SPI$SPDReg.write(byte)", "v": 1, "c": [ { "n": "avrora.sim.mcu.SPI$SPDReg$TransmitRegister.write(byte)", "v": 1, "c": [ { "n": "avrora.sim.RWRegister.write(byte)", "v": 1, "c": [ { "n": "avrora.sim.state.AbstractRegisterView.notify(int,int)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$LDI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$LDI)", "v": 1, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeRegisterByte(avrora.arch.legacy.LegacyRegister,byte)", "v": 1, "c": [] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInterpreter.sleepLoop()", "v": 13, "c": [ { "n": "avrora.sim.clock.MainClock.skipAhead()", "v": 13, "c": [ { "n": "avrora.sim.clock.DeltaQueue.skipAhead()", "v": 13, "c": [ { "n": "avrora.sim.clock.DeltaQueue$Link.fire()", "v": 13, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fire()", "v": 13, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireUnlocked(long)", "v": 1, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.access$000(avrora.sim.radio.Medium$Receiver,long)", "v": 1, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.waitForNeighbors(long)", "v": 1, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.waitForNeighbors(long)", "v": 1, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.advance(long,avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 1, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.notifyLink(avrora.sim.clock.RippleSynchronizer$WaitLink)", "v": 1, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireLocked(long)", "v": 12, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.access$000(avrora.sim.radio.Medium$Receiver,long)", "v": 1, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.waitForNeighbors(long)", "v": 1, "c": [ { "n": "avrora.sim.clock.RippleSynchronizer.waitForNeighbors(long)", "v": 1, "c": [] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.deliverByte(long)", "v": 11, "c": [ { "n": "avrora.sim.radio.Medium$Probe$List.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 11, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 11, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 11, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 11, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 11, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 11, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 11, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 11, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 11, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 11, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 11, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 11, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 11, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 11, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 11, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 11, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, "1713159116349": { "n": "all", "v": 69, "c": [ { "n": "avrora.jfr", "v": 46, "c": [ { "n": "avrora.sim.SimulatorThread.run()", "v": 46, "c": [ { "n": "avrora.sim.Simulator.start()", "v": 46, "c": [ { "n": "avrora.sim.AtmelInterpreter.start()", "v": 46, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.runLoop()", "v": 46, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.fastLoop()", "v": 18, "c": [ { "n": "avrora.sim.AtmelInterpreter.commit()", "v": 10, "c": [ { "n": "avrora.sim.clock.MainClock.advance(long)", "v": 10, "c": [ { "n": "avrora.sim.clock.DeltaQueue.advance(long)", "v": 10, "c": [ { "n": "avrora.sim.clock.DeltaQueue.advanceSlow(long)", "v": 10, "c": [ { "n": "avrora.sim.clock.DeltaQueue$Link.fire()", "v": 10, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fire()", "v": 4, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireLocked(long)", "v": 4, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.deliverByte(long)", "v": 4, "c": [ { "n": "avrora.sim.radio.Medium$Probe$List.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 4, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 4, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 4, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 4, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 4, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 4, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 4, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 4, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 4, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 4, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 4, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 4, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 4, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 4, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 4, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 4, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Transmitter$Ticker.fire()", "v": 6, "c": [ { "n": "avrora.sim.radio.Medium$Probe$List.fireBeforeTransmitEnd(avrora.sim.radio.Medium$Transmitter)", "v": 6, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireBeforeTransmitEnd(avrora.sim.radio.Medium$Transmitter)", "v": 6, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 6, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 6, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 6, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 6, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 6, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 6, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 6, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 6, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 6, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 6, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 6, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 6, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 6, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 6, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$SBI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 4, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$SBI)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter.setIORegBit(int,int,boolean)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 4, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 4, "c": [ { "n": "avrora.sim.mcu.ATMegaFamily$PortRegister.write(byte)", "v": 4, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.write(boolean)", "v": 4, "c": [ { "n": "avrora.sim.platform.LED.write(boolean)", "v": 4, "c": [ { "n": "avrora.sim.FiniteStateMachine.transition(int)", "v": 4, "c": [ { "n": "avrora.sim.FiniteStateMachine.fireAfter(avrora.sim.util.MulticastFSMProbe,int,int)", "v": 4, "c": [ { "n": "avrora.sim.util.MulticastFSMProbe.fireAfterTransition(int,int)", "v": 4, "c": [ { "n": "avrora.monitors.LEDMonitor$Mon.fireAfterTransition(int,int)", "v": 4, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 4, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 4, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 4, "c": [ { "n": "java.io.PrintStream.newLine()", "v": 2, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 2, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 2, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 2, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 2, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "java.io.PrintStream.print(java.lang.String)", "v": 2, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 2, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 2, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 2, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 2, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 2, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$CPC.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 2, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$CPC)", "v": 2, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInterpreter.sleepLoop()", "v": 28, "c": [ { "n": "avrora.sim.clock.MainClock.skipAhead()", "v": 28, "c": [ { "n": "avrora.sim.clock.DeltaQueue.skipAhead()", "v": 28, "c": [ { "n": "avrora.sim.clock.DeltaQueue$Link.fire()", "v": 28, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister$ConversionEvent.fire()", "v": 2, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister.access$100(avrora.sim.mcu.ADC$ControlRegister)", "v": 2, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister.convertVoltage()", "v": 2, "c": [ { "n": "avrora.sim.radio.CC1000Radio$RSSIOutput.getVoltage()", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.isChannelClear(int,int)", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.waitForNeighbors(long)", "v": 2, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fire()", "v": 26, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireLocked(long)", "v": 26, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.deliverByte(long)", "v": 26, "c": [ { "n": "avrora.sim.radio.Medium$Probe$List.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 26, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 26, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 26, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 26, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 26, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 26, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 26, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 26, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 26, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 26, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 26, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 26, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 26, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 26, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 26, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 26, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora2.jfr", "v": 23, "c": [ { "n": "avrora.sim.SimulatorThread.run()", "v": 23, "c": [ { "n": "avrora.sim.Simulator.start()", "v": 23, "c": [ { "n": "avrora.sim.AtmelInterpreter.start()", "v": 23, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.runLoop()", "v": 23, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.fastLoop()", "v": 9, "c": [ { "n": "avrora.sim.AtmelInterpreter.commit()", "v": 5, "c": [ { "n": "avrora.sim.clock.MainClock.advance(long)", "v": 5, "c": [ { "n": "avrora.sim.clock.DeltaQueue.advance(long)", "v": 5, "c": [ { "n": "avrora.sim.clock.DeltaQueue.advanceSlow(long)", "v": 5, "c": [ { "n": "avrora.sim.clock.DeltaQueue$Link.fire()", "v": 5, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fire()", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireLocked(long)", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.deliverByte(long)", "v": 2, "c": [ { "n": "avrora.sim.radio.Medium$Probe$List.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 2, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 2, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 2, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 2, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 2, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 2, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 2, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 2, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 2, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 2, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 2, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 2, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 2, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Transmitter$Ticker.fire()", "v": 3, "c": [ { "n": "avrora.sim.radio.Medium$Probe$List.fireBeforeTransmitEnd(avrora.sim.radio.Medium$Transmitter)", "v": 3, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireBeforeTransmitEnd(avrora.sim.radio.Medium$Transmitter)", "v": 3, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 3, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 3, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 3, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 3, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 3, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 3, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 3, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 3, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 3, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 3, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 3, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 3, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 3, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 3, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$SBI.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 2, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$SBI)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.setIORegBit(int,int,boolean)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeSRAM(boolean,int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter.writeVolatile(int,byte)", "v": 2, "c": [ { "n": "avrora.sim.AtmelInterpreter$IORegBehavior.write(int,int)", "v": 2, "c": [ { "n": "avrora.sim.mcu.ATMegaFamily$PortRegister.write(byte)", "v": 2, "c": [ { "n": "avrora.sim.mcu.DefaultMCU$Pin.write(boolean)", "v": 2, "c": [ { "n": "avrora.sim.platform.LED.write(boolean)", "v": 2, "c": [ { "n": "avrora.sim.FiniteStateMachine.transition(int)", "v": 2, "c": [ { "n": "avrora.sim.FiniteStateMachine.fireAfter(avrora.sim.util.MulticastFSMProbe,int,int)", "v": 2, "c": [ { "n": "avrora.sim.util.MulticastFSMProbe.fireAfterTransition(int,int)", "v": 2, "c": [ { "n": "avrora.monitors.LEDMonitor$Mon.fireAfterTransition(int,int)", "v": 2, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 2, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 2, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 2, "c": [ { "n": "java.io.PrintStream.newLine()", "v": 1, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 1, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "java.io.PrintStream.print(java.lang.String)", "v": 1, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 1, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 1, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 1, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 1, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 1, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 1, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInstr$CPC.accept(avrora.arch.legacy.LegacyInstrVisitor)", "v": 1, "c": [ { "n": "avrora.arch.legacy.LegacyInterpreter.visit(avrora.arch.legacy.LegacyInstr$CPC)", "v": 1, "c": [] } ] } ] }, { "n": "avrora.arch.legacy.LegacyInterpreter.sleepLoop()", "v": 14, "c": [ { "n": "avrora.sim.clock.MainClock.skipAhead()", "v": 14, "c": [ { "n": "avrora.sim.clock.DeltaQueue.skipAhead()", "v": 14, "c": [ { "n": "avrora.sim.clock.DeltaQueue$Link.fire()", "v": 14, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister$ConversionEvent.fire()", "v": 1, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister.access$100(avrora.sim.mcu.ADC$ControlRegister)", "v": 1, "c": [ { "n": "avrora.sim.mcu.ADC$ControlRegister.convertVoltage()", "v": 1, "c": [ { "n": "avrora.sim.radio.CC1000Radio$RSSIOutput.getVoltage()", "v": 1, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.isChannelClear(int,int)", "v": 1, "c": [ { "n": "avrora.sim.radio.Medium$Receiver.waitForNeighbors(long)", "v": 1, "c": [] } ] } ] } ] } ] } ] }, { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fire()", "v": 13, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.fireLocked(long)", "v": 13, "c": [ { "n": "avrora.sim.radio.Medium$Receiver$Ticker.deliverByte(long)", "v": 13, "c": [ { "n": "avrora.sim.radio.Medium$Probe$List.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 13, "c": [ { "n": "avrora.monitors.PacketMonitor$Mon.fireAfterReceiveEnd(avrora.sim.radio.Medium$Receiver)", "v": 13, "c": [ { "n": "avrora.sim.output.SimPrinter.printBuffer(java.lang.StringBuffer)", "v": 13, "c": [ { "n": "cck.text.Terminal.println(java.lang.String)", "v": 13, "c": [ { "n": "java.io.PrintStream.println(java.lang.String)", "v": 13, "c": [ { "n": "java.io.PrintStream.print(java.lang.String)", "v": 13, "c": [ { "n": "java.io.PrintStream.write(java.lang.String)", "v": 13, "c": [ { "n": "java.io.OutputStreamWriter.flushBuffer()", "v": 13, "c": [ { "n": "sun.nio.cs.StreamEncoder.flushBuffer()", "v": 13, "c": [ { "n": "sun.nio.cs.StreamEncoder.implFlushBuffer()", "v": 13, "c": [ { "n": "sun.nio.cs.StreamEncoder.writeBytes()", "v": 13, "c": [ { "n": "java.io.PrintStream.write(byte[],int,int)", "v": 13, "c": [ { "n": "java.io.FilterOutputStream.write(byte[],int,int)", "v": 13, "c": [ { "n": "org.dacapo.harness.TeeOutputStream.write(int)", "v": 13, "c": [ { "n": "java.io.FileOutputStream.write(int)", "v": 13, "c": [ { "n": "java.io.FileOutputStream.write(int,boolean)", "v": 13, "c": [] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } } },
git: {
- git_tb_cols: 2,
+ git_tb_cols: 5,
git_tb_data: ['Key', 'Value', 'commit', '478ea28ce27fdc003334c6f', 'author', 'huxiongbin 00637742', 'author_email', 'huxiongbin3@huawei.com', 'date', 'Wed Nov 22 11:14:15 2023 +0800', 'message', 'merge-master-into-master'],
}
}