In this section you'll find out all about rulesets:
A ruleset defines what should be deeptraced (see Profiling modes). A ruleset consists of 2 parts:
Rulesets can be used with different goals in mind, these are the most important ones:
There are 2 places where you can create a new ruleset: In the options of a trace configured as DeepTrace, or in the Deeptrace
library under the Settings tab. Both work exactly the same, although there is 1 important difference:
rulesets that are created in a trace configuration are only present in that trace configuration and
not in later tracing sessions (unless you promote it to the library by clicking on the book icon
(
).
Rulesets created in (or promoted to) the library will be available to use in all subsequent trace
configurations.
You create a new ruleset by clicking the add button (
). After that you can specify a title and a description for your ruleset. You can also select
a category, or type a new category if none fits your need.
The 'Active' checkbox specifies if the ruleset will be enabled by default in new traces.
After that you can just start adding method and field rules in the corresponding tabs. After you
select the left argument (specifying the property on which to include a method), you can type the
right argument, but also use the picker (
) to easily specify it. Select the assembly to use as a source for browsing and then select
one or more items. You can use the filterbox to help you find the right items.
If you specify more then 1 item, additional rules will be automatically created.
To start from an existing ruleset to create a new one, first copy the existing rulest and then,
after creating a new ruleset, paste it. You can now change the copy to your liking.
As mentioned in
Ruleset Library, rulesets are designed to be easily shared with other Codetrack users. On top
of sharing your creations yourself, by default Codetrack also sends them to a server. This way your
ruleset or a part of it might be added to the default library in future releases to help others.
If for some reason you don't want this, you can easily disable this in the Settings tab under 'Data
Collection'.