'use strict';
-base.require('base.settings');
+tvcm.require('tvcm.settings');
-base.exportTo('tracing', function() {
- var Settings = base.Settings;
+tvcm.exportTo('tracing', function() {
+ var Settings = tvcm.Settings;
/**
* A way to persist settings specific to parts of a trace model.
*
* This system works on a notion of an object key: for an object's key, it
* considers all the other keys in the model. If it is unique, then the key is
- * persisted to base.Settings. However, if it is not unique, then the
+ * persisted to tvcm.Settings. However, if it is not unique, then the
* setting is stored on the object itself. Thus, objects with unique keys will
* be persisted across page reloads, whereas objects with nonunique keys will
* not.
buildObjectsByKeyMap_: function() {
var objects = [this.model.kernel];
objects.push.apply(objects,
- base.dictionaryValues(this.model.processes));
+ tvcm.dictionaryValues(this.model.processes));
objects.push.apply(objects,
this.model.getAllThreads());
var objectsByKey = {};
}
var nonuniqueKeys = {};
- base.dictionaryKeys(objectsByKey).forEach(function(objectKey) {
+ tvcm.dictionaryKeys(objectsByKey).forEach(function(objectKey) {
if (objectsByKey[objectKey] !== NONUNIQUE_KEY)
return;
delete objectsByKey[objectKey];
removeNonuniqueKeysFromSettings_: function() {
var settings = Settings.get('trace_model_settings', {});
var settingsChanged = false;
- base.dictionaryKeys(settings).forEach(function(objectKey) {
+ tvcm.dictionaryKeys(settings).forEach(function(objectKey) {
if (!this.nonuniqueKeys[objectKey])
return;
settingsChanged = true;