Blender
V5.3
source
blender
blenlib
intern
vector.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#include "
BLI_string.hh
"
10
#include "
BLI_vector.hh
"
11
12
#include <iostream>
13
14
namespace
blender
{
15
16
void
internal::vector_print_stats
(
const
char
*name,
17
const
void
*address,
18
int64_t
size,
19
int64_t
capacity
,
20
int64_t
inlineCapacity,
21
int64_t
memorySize)
22
{
23
std::cout <<
"Vector Stats: "
<< name <<
"\n"
;
24
std::cout <<
" Address: "
<< address <<
"\n"
;
25
std::cout <<
" Elements: "
<< size <<
"\n"
;
26
std::cout <<
" Capacity: "
<<
capacity
<<
"\n"
;
27
std::cout <<
" Inline Capacity: "
<< inlineCapacity <<
"\n"
;
28
29
char
memory_size_str[
BLI_STR_FORMAT_INT64_BYTE_UNIT_SIZE
];
30
BLI_str_format_byte_unit
(memory_size_str, memorySize,
true
);
31
std::cout <<
" Size on Stack: "
<< memory_size_str <<
"\n"
;
32
}
33
34
}
// namespace blender
BLI_string.hh
BLI_STR_FORMAT_INT64_BYTE_UNIT_SIZE
#define BLI_STR_FORMAT_INT64_BYTE_UNIT_SIZE
Definition
BLI_string.hh:31
BLI_vector.hh
capacity
#define capacity(const)
Definition
gpu_shader_cxx_attribute.hh:135
blender::internal::vector_print_stats
void vector_print_stats(const char *name, const void *address, int64_t size, int64_t capacity, int64_t inlineCapacity, int64_t memorySize)
Definition
vector.cc:16
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::BLI_str_format_byte_unit
void BLI_str_format_byte_unit(char dst[BLI_STR_FORMAT_INT64_BYTE_UNIT_SIZE], long long int bytes, bool base_10) ATTR_NONNULL(1)
Definition
blenlib/intern/string.cc:1216
blender::int64_t
__int64 int64_t
Definition
BKE_text.h:90
Generated on
for Blender by
doxygen
1.18.0