commit | 6ee40d2582a95e97bf6327ab6ed70f0dc68c9ebc | [log] [tgz] |
---|---|---|
author | Geneviève Bastien <gbastien+lttng@versatic.net> | Mon Sep 09 11:39:24 2019 -0400 |
committer | Genevieve Bastien <gbastien+lttng@versatic.net> | Wed Sep 11 10:10:15 2019 -0400 |
tree | 59ff432488d8e34aaf86144b4dd633e3847b2854 | |
parent | e9353ece553301e34e5597ec8055094c89e0686b [diff] |
Weighted tree: Add the data structure This adds and ITree<T> interface to convey a parent/child relationship to any class. And a WeightedTree<T> class to extend for weighted tree, ie a parent/child data structure where each element has a weight, that can represent anything. It also adds an IWeightedTreeProvider interface that analysis providing a weighted tree can implement to indicate what the data represents. [added] A weighted tree data structure to display as flame graphs/tree Change-Id: I10a8b7adf5c9a8ee1436a5e054bfca9e9a20123d Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net> Reviewed-on: https://git.eclipse.org/r/133216 Tested-by: CI Bot Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com> Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
This source tree contains the source code for Trace Compass Incubator plugins.
This project is an incubator which aims at rapid availability of new features and prototypes, to provide new functionnalities to end users and get feedback from them during the development process. As such, code style and design architecture will not be looked at too much during reviews, though some advices and ideas can be discussed. The features have to work as expected though and not break anything in Trace Compass.
Add unit tests: CI will be run on every patch on gerrit, so having unit tests ensures that a patch does not break anything somewhere else. Also, these plugins are work in progress. Having unit tests makes it easier to manipulate code structure and algorithms by knowing the expected results. Tests need to be maintained, but have more benefits than trouble.
There is no release, so no API. Plugins may use the other incubation features at their own risk.
The incubator is an Eclipse project so code will be verified to make sure it can be distributed by Eclipse. Committers are responsible to ensure the IP due diligence is met with every patch submitted.
When the code base of some feature gets more stable and mature, it may be ported to the main Trace Compass repository and only then will there be thorough code review and design discussion.
To set up the environment to build Trace Compass from within Eclipse, see this wiki page: http://wiki.eclipse.org/Trace_Compass/Development_Environment_Setup
Once the Trace Compass environment set, import the projects from this repository.
The Maven project build requires version 3.3 or later. It can be downloaded from http://maven.apache.org or from the package management system of your distro.
To build the project manually using Maven, simply run the following command from the top-level directory:
mvn clean install
The default command will compile and run the unit tests. Running the tests can take some time, to skip them you can append -Dmaven.test.skip=true
to the mvn
command:
mvn clean install -Dmaven.test.skip=true
To generate the javadoc from the Trace Compass source code, run the following command from the top-level directory:
mvn clean package javadoc:aggregate
The javadoc html files will be under target/site/apidocs
.
The following Maven profiles and properties are defined in the build system. You can set them by using -P[profile name]
and -D[property name]=[value]
in mvn
commands.
-Pdeploy-update-site
Mainly for use on build servers. Copies the standard update site (for the Eclipse plugin installation) to the destination specified by -DsiteDestination=/absolute/path/to/destination
.
mvn javadoc:aggregate
Mainly for use on build servers. Generates the javadoc of API classes as a HTML website to the destination specified by -Djavadoc-site=/absolute/path/to/destination
.