1<!DOCTYPE html>
2<!--
3Copyright (c) 2015 The Chromium Authors. All rights reserved.
4Use of this source code is governed by a BSD-style license that can be
5found in the LICENSE file.
6-->
7
8<link rel="import" href="/perf_insights/function_handle.html">
9
10<script>
11'use strict';
12
13tr.exportTo('pie', function() {
14  function mapProcessCount(result, model) {
15    result.addPair(
16        'load_info', {
17          numProcesses: model.getAllProcesses().length
18        });
19  }
20
21  pi.FunctionRegistry.register(mapProcessCount);
22
23  return {
24    mapProcessCountForTest: mapProcessCount
25  };
26});
27</script>
28