Blender V4.3
BLI_memory_counter.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
11#include "BLI_function_ref.hh"
13#include "BLI_map.hh"
15#include "BLI_set.hh"
16#include "BLI_vector_set.hh"
17
19
35
42 private:
43 MemoryCount &count_;
44
45 public:
47
51 void add(const int64_t bytes);
52
62 void add_shared(const ImplicitSharingInfo *sharing_info,
63 const FunctionRef<void(MemoryCounter &shared_memory)> count_fn);
64
69 void add_shared(const ImplicitSharingInfo *sharing_info, const int64_t bytes);
70};
71
72} // namespace blender::memory_counter
Set< WeakImplicitSharingPtr > handled_shared_data
void add_shared(const ImplicitSharingInfo *sharing_info, const FunctionRef< void(MemoryCounter &shared_memory)> count_fn)
int count
__int64 int64_t
Definition stdint.h:89