<!DOCTYPE html>
<!--
Copyright 2016 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<link rel="import" href="/tracing/metrics/metric_registry.html">
<link rel="import" href="/tracing/metrics/system_health/memory_metric.html">
<link rel="import" href="/tracing/metrics/v8/execution_metric.html">
<link rel="import" href="/tracing/metrics/v8/gc_metric.html">

<script>
'use strict';

tr.exportTo('tr.metrics.v8', function() {
  function v8AndMemoryMetrics(histograms, model) {
    tr.metrics.v8.executionMetric(histograms, model);
    tr.metrics.v8.gcMetric(histograms, model);
    tr.metrics.sh.memoryMetric(histograms, model,
        {rangeOfInterest: tr.metrics.v8.utils.rangeForMemoryDumps(model)});
  }

  tr.metrics.MetricRegistry.register(v8AndMemoryMetrics);

  return {
    v8AndMemoryMetrics,
  };
});
</script>

<!DOCTYPE html>
<!--
Copyright 2016 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<link rel="import" href="/tracing/metrics/metric_registry.html">
<link rel="import" href="/tracing/metrics/system_health/memory_metric.html">
<link rel="import" href="/tracing/metrics/v8/execution_metric.html">
<link rel="import" href="/tracing/metrics/v8/gc_metric.html">
<link rel="import" href="/tracing/metrics/v8/runtime_stats_metric.html">

<script>
'use strict';

tr.exportTo('tr.metrics.v8', function() {
  function v8AndMemoryMetrics(histograms, model) {
    tr.metrics.v8.executionMetric(histograms, model);
    tr.metrics.v8.gcMetric(histograms, model);
    tr.metrics.v8.runtimeStatsTotalMetric(histograms, model);
    tr.metrics.sh.memoryMetric(histograms, model,
        {rangeOfInterest: tr.metrics.v8.utils.rangeForMemoryDumps(model)});
  }

  tr.metrics.MetricRegistry.register(v8AndMemoryMetrics);

  return {
    v8AndMemoryMetrics,
  };
});
</script>

Add runtime call stats metric to v8AndMemoryMetrics
[metrics] Add runtime call stats metric to v8AndMemoryMetrics

v8AndMemoryMetrics should include all major V8 metrics.

Change-Id: Id246f6253d414090d4091cb5dd86ffe4a6de15bb
Reviewed-on: https://chromium-review.googlesource.com/c/catapult/+/2978474
Reviewed-by: Michael Lippautz <366b911b1713540eac38e45e389ba1ab59b56004@chromium.org>
Commit-Queue: Camillo Bruni <48479145b1c11ab9f816c67741cf5e91e1a32051@chromium.org>
