<!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/v8/execution_metric.html">

<script>
'use strict';

tr.exportTo('tr.metrics.v8', function() {
  function V8Metrics(valueList, model) {
    tr.metrics.v8.V8ExecutionMetric(valueList, model);
  }

  V8Metrics.prototype = {
    __proto__: Function.prototype
  };

  tr.metrics.MetricRegistry.register(V8Metrics);

  return {
    V8Metrics: V8Metrics
  };
});
</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">

<script>
'use strict';

tr.exportTo('tr.metrics.v8', function() {
  function v8AndMemoryMetrics(valueList, model) {
    tr.metrics.v8.executionMetric(valueList, model);
    tr.metrics.v8.gcMetric(valueList, model);
    tr.metrics.sh.memoryMetric(valueList, model);
  }

  v8AndMemoryMetrics.prototype = {
    __proto__: Function.prototype
  };

  tr.metrics.MetricRegistry.register(v8AndMemoryMetrics);

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

Create a meta-metric for V8 execution, GC, and memory.
Create a meta-metric for V8 execution, GC, and memory.

BUG=chromium:593793

Review URL: https://codereview.chromium.org/1914163003
