| Index: Source/devtools/front_end/timeline/TracingTimelineUIUtils.js
|
| diff --git a/Source/devtools/front_end/timeline/TracingTimelineUIUtils.js b/Source/devtools/front_end/timeline/TracingTimelineUIUtils.js
|
| index 50cf0d35039c83db4dcd323798233cdd0df5d118..56244d1683be379d366b49f4473a1fdf50803844 100644
|
| --- a/Source/devtools/front_end/timeline/TracingTimelineUIUtils.js
|
| +++ b/Source/devtools/front_end/timeline/TracingTimelineUIUtils.js
|
| @@ -68,6 +68,15 @@ WebInspector.TracingTimelineUIUtils.prototype = {
|
|
|
| /**
|
| * @param {!WebInspector.TimelineModel.Record} record
|
| + * @return {string}
|
| + */
|
| + titleForRecord: function(record)
|
| + {
|
| + return WebInspector.TracingTimelineUIUtils.styleForTraceEvent(record.traceEvent().name).title;
|
| + },
|
| +
|
| + /**
|
| + * @param {!WebInspector.TimelineModel.Record} record
|
| * @param {!WebInspector.Linkifier} linkifier
|
| * @param {boolean} loadedFromFile
|
| * @return {?Node}
|
| @@ -102,6 +111,24 @@ WebInspector.TracingTimelineUIUtils.prototype = {
|
| return WebInspector.TracingTimelineUIUtils._createEventDivider(recordType, title);
|
| },
|
|
|
| + /**
|
| + * @param {!WebInspector.TimelineModel.Record} record
|
| + * @param {!RegExp} regExp
|
| + * @return {boolean}
|
| + */
|
| + testContentMatching: function(record, regExp)
|
| + {
|
| + var traceEvent = record.traceEvent();
|
| + var title = WebInspector.TracingTimelineUIUtils.styleForTraceEvent(traceEvent.name).title;
|
| + var tokens = [title];
|
| + for (var argName in traceEvent.args) {
|
| + var argValue = traceEvent.args[argName];
|
| + for (var key in argValue)
|
| + tokens.push(argValue[key]);
|
| + }
|
| + return regExp.test(tokens.join("|"));
|
| + },
|
| +
|
| __proto__: WebInspector.TimelineUIUtils.prototype
|
| }
|
|
|
|
|