VirtualBox

Changeset 27985 in vbox


Ignore:
Timestamp:
Apr 5, 2010 1:55:26 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59691
Message:

Metrics documentation formatting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r27980 r27985  
    1370513705  >
    1370613706    <desc>
    13707       The IPerformanceCollector interface represents a service that collects and
    13708       stores performance metrics data.
    13709 
    13710       Performance metrics are associated with objects of interfaces like IHost and
    13711       IMachine. Each object has a distinct set of performance metrics.
    13712       The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
     13707      The IPerformanceCollector interface represents a service that collects
     13708      and stores performance metrics data.
     13709
     13710      Performance metrics are associated with objects of interfaces like IHost
     13711      and IMachine. Each object has a distinct set of performance metrics.  The
     13712      set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
    1371313713
    1371413714      Metric data is collected at the specified intervals and is retained
     
    1371713717      and collection settings are not persistent, they are discarded as soon as
    1371813718      VBoxSVC process terminates. Moreover, metric settings and data associated
    13719       with a particular VM only exist while VM is running. They disappear as soon
    13720       as VM shuts down. It is not possible to setup metrics for machines that are
    13721       powered off. One needs to start VM first, then set up metric collection
    13722       parameters.
     13719      with a particular VM only exist while VM is running. They disappear as
     13720      soon as VM shuts down. It is not possible to set up metrics for machines
     13721      that are powered off. One needs to start VM first, then set up metric
     13722      collection parameters.
    1372313723
    1372413724      Metrics are organized hierarchically, with each level separated by a
     
    1372713727      <tt>Category/Metric[/SubMetric][:aggregation]</tt>
    1372813728
    13729       "Category/Metric" together form the base metric name. A base metric is the
    13730       smallest unit for which a sampling interval and the number of retained
    13731       samples can be set. Only base metrics can be enabled and disabled. All
    13732       sub-metrics are collected when their base metric is collected.
    13733       Collected values for any set of sub-metrics can be queried with
    13734       <link to="IPerformanceCollector::queryMetricsData" />.
    13735 
    13736       For example "CPU/Load/User:avg"
    13737       metric name stands for the "CPU" category, "Load" metric, "User" submetric,
    13738       "average" aggregate. An aggregate function is computed over all retained
    13739       data. Valid aggregate functions are:
     13729      "Category/Metric" together form the base metric name. A base metric is
     13730      the smallest unit for which a sampling interval and the number of
     13731      retained samples can be set. Only base metrics can be enabled and
     13732      disabled. All sub-metrics are collected when their base metric is
     13733      collected.  Collected values for any set of sub-metrics can be queried
     13734      with <link to="IPerformanceCollector::queryMetricsData" />.
     13735
     13736      For example "CPU/Load/User:avg" metric name stands for the "CPU"
     13737      category, "Load" metric, "User" submetric, "average" aggregate. An
     13738      aggregate function is computed over all retained data. Valid aggregate
     13739      functions are:
    1374013740
    1374113741      <ul>
     
    1374513745      </ul>
    1374613746
    13747       When setting up
    13748       metric parameters, querying metric data, enabling or disabling metrics
    13749       wildcards can be used in metric names to specify a subset of metrics. For
    13750       example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
    13751       averages can be queried using <tt>*:avg</tt> and so on. To query metric
    13752       values without aggregates <tt>*:</tt> can be used.
     13747      When setting up metric parameters, querying metric data, enabling or
     13748      disabling metrics wildcards can be used in metric names to specify a
     13749      subset of metrics. For example, to select all CPU-related metrics
     13750      use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
     13751      so on. To query metric values without aggregates <tt>*:</tt> can be used.
    1375313752
    1375413753      The valid names for base metrics are:
     
    1377113770        </li>
    1377213771        <li>
    13773           Allocate and populate an array with base metric names the data will be
    13774           collected for.
     13772          Allocate and populate an array with base metric names the data will
     13773          be collected for.
    1377513774        </li>
    1377613775        <li>
    13777           Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
    13778           metric data will be collected and stored.
     13776          Call <link to="IPerformanceCollector::setupMetrics" />. From now on
     13777          the metric data will be collected and stored.
    1377913778        </li>
    1378013779        <li>
     
    1379113790        </li>
    1379213791        <li>
    13793           Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
    13794           have been collected so far are returned. Note that the values are still
    13795           retained internally and data collection continues.
     13792          Call <link to="IPerformanceCollector::queryMetricsData" />. The data
     13793          that have been collected so far are returned. Note that the values
     13794          are still retained internally and data collection continues.
    1379613795        </li>
    1379713796      </ul>
     
    1384813847      <desc>
    1384913848        Sets parameters of specified base metrics for a set of objects. Returns
    13850         an array of <link to="IPerformanceMetric" /> describing the metrics have
    13851         been affected.
     13849        an array of <link to="IPerformanceMetric" /> describing the metrics
     13850        have been affected.
    1385213851        <note>
    13853           @c Null or empty metric name array means all metrics. @c Null or empty
    13854           object array means all existing objects. If metric name array contains
    13855           a single element and object array contains many, the single metric
    13856           name array element is applied to each object array element to form
    13857           metric/object pairs.
     13852          @c Null or empty metric name array means all metrics. @c Null or
     13853          empty object array means all existing objects. If metric name array
     13854          contains a single element and object array contains many, the single
     13855          metric name array element is applied to each object array element to
     13856          form metric/object pairs.
    1385813857        </note>
    1385913858      </desc>
     
    1387113870      <param name="period" type="unsigned long" dir="in">
    1387213871        <desc>
    13873           Time interval in seconds between two consecutive samples of performance
    13874           data.
     13872          Time interval in seconds between two consecutive samples of
     13873          performance data.
    1387513874        </desc>
    1387613875      </param>
    1387713876      <param name="count" type="unsigned long" dir="in">
    1387813877        <desc>
    13879           Number of samples to retain in performance data history. Older samples
    13880           get discarded.
     13878          Number of samples to retain in performance data history. Older
     13879          samples get discarded.
    1388113880        </desc>
    1388213881      </param>
     
    1389413893        affected.
    1389513894        <note>
    13896           @c Null or empty metric name array means all metrics. @c Null or empty
    13897           object array means all existing objects. If metric name array contains
    13898           a single element and object array contains many, the single metric
    13899           name array element is applied to each object array element to form
    13900           metric/object pairs.
     13895          @c Null or empty metric name array means all metrics. @c Null or
     13896          empty object array means all existing objects. If metric name array
     13897          contains a single element and object array contains many, the single
     13898          metric name array element is applied to each object array element to
     13899          form metric/object pairs.
    1390113900        </note>
    1390213901      </desc>
     
    1392513924        affected.
    1392613925        <note>
    13927           @c Null or empty metric name array means all metrics. @c Null or empty
    13928           object array means all existing objects. If metric name array contains
    13929           a single element and object array contains many, the single metric
    13930           name array element is applied to each object array element to form
    13931           metric/object pairs.
     13926          @c Null or empty metric name array means all metrics. @c Null or
     13927          empty object array means all existing objects. If metric name array
     13928          contains a single element and object array contains many, the single
     13929          metric name array element is applied to each object array element to
     13930          form metric/object pairs.
    1393213931        </note>
    1393313932      </desc>
     
    1396813967
    1396913968        <note>
    13970           @c Null or empty metric name array means all metrics. @c Null or empty
    13971           object array means all existing objects. If metric name array contains
    13972           a single element and object array contains many, the single metric
    13973           name array element is applied to each object array element to form
    13974           metric/object pairs.
     13969          @c Null or empty metric name array means all metrics. @c Null or
     13970          empty object array means all existing objects. If metric name array
     13971          contains a single element and object array contains many, the single
     13972          metric name array element is applied to each object array element to
     13973          form metric/object pairs.
    1397513974        </note>
    1397613975        <note>
    13977           Data collection continues behind the scenes after call to
    13978           @c queryMetricsData. The return data can be seen as the snapshot of
    13979           the current state at the time of @c queryMetricsData call. The
    13980           internally kept metric values are not cleared by the call. This makes
    13981           possible querying different subsets of metrics or aggregates with
    13982           subsequent calls. If periodic querying is needed it is highly
    13983           suggested to query the values with @c interval*count period to avoid
    13984           confusion. This way a completely new set of data values will be
    13985           provided by each query.
     13976          Data collection continues behind the scenes after call to @c
     13977          queryMetricsData. The return data can be seen as the snapshot of the
     13978          current state at the time of @c queryMetricsData call. The internally
     13979          kept metric values are not cleared by the call. This makes possible
     13980          querying different subsets of metrics or aggregates with subsequent
     13981          calls. If periodic querying is needed it is highly suggested to query
     13982          the values with @c interval*count period to avoid confusion. This way
     13983          a completely new set of data values will be provided by each query.
    1398613984        </note>
    1398713985      </desc>
     
    1402314021       <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
    1402414022         <desc>
    14025            Sequence numbers of the first elements of value sequences of particular metrics
    14026            returned in @c returnData. For aggregate metrics it is the sequence number of
    14027            the sample the aggregate started calculation from.
     14023           Sequence numbers of the first elements of value sequences of
     14024           particular metrics returned in @c returnData. For aggregate metrics
     14025           it is the sequence number of the sample the aggregate started
     14026           calculation from.
    1402814027         </desc>
    1402914028       </param>
    1403014029      <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
    1403114030        <desc>
    14032           Indices of the first elements of value sequences of particular metrics
    14033           returned in @c returnData.
     14031          Indices of the first elements of value sequences of particular
     14032          metrics returned in @c returnData.
    1403414033        </desc>
    1403514034      </param>
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette