summaryrefslogtreecommitdiff
path: root/chromium/content/child/content_child_helpers.h
blob: 33dc4ab9bf4227a20d9c78fb78b83d2f68cea951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2014 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.

#ifndef CONTENT_CHILD_CONTENT_CHILD_HELPERS_H_
#define CONTENT_CHILD_CONTENT_CHILD_HELPERS_H_

#include <stddef.h>

namespace content {

// Returns an estimate of the memory usage of the renderer process. Different
// platforms implement this function differently, and count in different
// allocations. Results are not comparable across platforms. The estimate is
// computed inside the sandbox and thus its not always accurate.
size_t GetMemoryUsageKB();

}  // content

#endif  // CONTENT_CHILD_CONTENT_CHILD_HELPERS_H_