Changes between Version 3 and Version 4 of MetricQuery
- Timestamp:
- Feb 22, 2012, 1:50:22 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MetricQuery
v3 v4 1 1 = Metric Queries = 2 A metric query language was designed to query some metric information about Erlang programs. 2 A metric query language was designed to query some metric information about Erlang programs. Metrics also can be used as properties in our [SemanticQuery semantic query language]. 3 3 4 4 == Defined metrics == … … 133 133 134 134 == Examples == 135 135 === Simple query === 136 136 With the following query we count the number of functions of the 137 137 modules given in the list. … … 146 146 * {{{('a','b')}}}: contains the names of modules in which we calculate the metrics. In case the type of the node was defined as function the list must contain the following elements: The name of the module, in which the function was defined, the name of the function and its arity. In this case the list can have more than one element. The next list {{{{'test','f',1}}}} defines a function which is defined in the {{{test}}} module. Its name is {{{f}}}, and its arity is {{{1}}}. 147 147 148 148 === Advanced query === 149 149 In the next example we would like to define the number of recursive calls of two functions defined in the {{{a}}} module, the number of branches on which the particular function calls itself, and we sum up the two results with the help of the {{{sum}}} aggregating function. 150 150 … … 155 155 At the end of queries we can place filters which filter the results that are received at the output, or which are aggregating functions which change the result of the query. 156 156 157 158 157 == Using metric queries from different interfaces == 159 158