2018 Ericsson AB. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 1 scheduler.xml
scheduler Measure scheduler utilization

This module contains utility functions for easier measurement and calculation of scheduler utilization, otherwise obtained from calling the more primitive statistics(scheduler_wall_time).

The simplest usage is to call scheduler:utilization(Seconds).

A list of tuples containing results for individual schedulers as well as aggregated averages. Util is the scheduler utilization as a floating point value between 0.0 and 1.0. Percent is the same utilization as a more human readable string expressed in percent.

{normal, SchedulerId, Util, Percent} Scheduler utilization of a normal scheduler with number SchedulerId. {cpu, SchedulerId, Util, Percent} Scheduler utilization of a dirty-cpu scheduler with number SchedulerId. {io, SchedulerId, Util, Percent} Scheduler utilization of a dirty-io scheduler with number SchedulerId. This tuple will only exist if both samples were taken with sample_all/0. {total, Util, Percent} Total utilization of all normal and dirty-cpu schedulers. {weighted, Util, Percent} Total utilization of all normal and dirty-cpu schedulers, weighted against maximum amount of available CPU time.
Get scheduler utilization sample.

Return a scheduler utilization sample for normal and dirty-cpu schedulers.

Get scheduler utilization sample.

Return a scheduler utilization sample for all schedulers, including dirty-io schedulers.

Measure scheduler utilizations during a period of time.

Measure utilization for normal and dirty-cpu schedulers during Seconds seconds, and then return the result.

Measure scheduler utilizations since sample.

Calculate scheduler utilizations for the time interval from when Sample was taken and "now". The same as calling scheduler:utilization(Sample, scheduler:sample_all()).

Measure scheduler utilizations between two samples.

Calculates scheduler utilizations for the time interval between the two samples obtained from calling sample/0 or sample_all/0.