blob: 427a401bf7b169a2cb22ddc66ad2b8d623027988 [file] [log] [blame]
<!DOCTYPE html>
<!--
Copyright (c) 2013 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/model/async_slice.html">
<script>
'use strict';
tr.exportTo('tr.e.measure', function() {
var AsyncSlice = tr.model.AsyncSlice;
function MeasureAsyncSlice() {
this.groupTitle_ = 'Ungrouped Measure';
var matched = /([^\/:]+):([^\/:]+)\/?(.*)/.exec(arguments[1]);
if (matched !== null) {
arguments[1] = matched[2];
this.groupTitle_ = matched[1];
}
AsyncSlice.apply(this, arguments);
}
MeasureAsyncSlice.prototype = {
__proto__: AsyncSlice.prototype,
get viewSubGroupTitle() {
return this.groupTitle_;
},
get title() {
return this.title_;
},
set title(title) {
this.title_ = title;
}
};
AsyncSlice.register(
MeasureAsyncSlice,
{
categoryParts: ['blink.user_timing']
});
return {
MeasureAsyncSlice: MeasureAsyncSlice
};
});
</script>