alth/utils.html">
<link rel="import" href="/tracing/model/helpers/chrome_model_helper.html">
<link rel="import" href="/tracing/model/timed_event.html">
<link rel="import" href="/tracing/value/histogram.html">

<script>
'use strict';

tr.exportTo('tr.metrics.sh', function() {
  /**
   * Returns the total self time of |event| within |rangeOfInterest|. Total self
   * time is computed by finding time ranges that do not contain a descendant
   * slice. Example:
   *
   *       [                      A          