flutter_flutter/flow/process_info.h
Vyacheslav Egorov 723c7d0143
Revert "Re-land "Support multiple shells in a single process. (#4932)" (#4977)" (#4981)
This reverts commit a3327bff86800b3e654a2988fa7e6049edeb679c.
2018-04-12 18:28:55 +02:00

32 lines
900 B
C++

// Copyright 2016 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 FLUTTER_FLOW_PROCESS_INFO_H_
#define FLUTTER_FLOW_PROCESS_INFO_H_
#include "lib/fxl/macros.h"
namespace flow {
/// The CompositorContext attempts to collect information from the process for
/// instrumentation purposes. The compositor does not have the platform
/// specific capabilities to collect this information on its own. The platform
/// can choose to provide this information however.
class ProcessInfo {
public:
virtual ~ProcessInfo() = default;
virtual bool SampleNow() = 0;
/// Virtual memory size in bytes.
virtual size_t GetVirtualMemorySize() = 0;
/// Resident memory size in bytes.
virtual size_t GetResidentMemorySize() = 0;
};
} // namespace flow
#endif // FLUTTER_FLOW_PROCESS_INFO_H_