1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5'use strict';
6
7/**
8 * @fileoverview Provides the Process class.
9 */
10base.require('model.process_base');
11
12base.exportTo('tracing.model', function() {
13
14  /**
15   * The Kernel represents kernel-level objects in the
16   * model.
17   * @constructor
18   */
19  function Kernel() {
20    tracing.model.ProcessBase.call(this);
21  };
22
23  /**
24   * Comparison between kernels is pretty meaningless.
25   */
26  Kernel.compare = function(x, y) {
27    return 0;
28  };
29
30  Kernel.prototype = {
31    __proto__: tracing.model.ProcessBase.prototype,
32
33    compareTo: function(that) {
34      return Kernel.compare(this, that);
35    },
36
37    get userFriendlyName() {
38      return 'kernel';
39    },
40
41    get userFriendlyDetails() {
42      return 'kernel';
43    }
44  };
45
46  return {
47    Kernel: Kernel
48  };
49});
50