#include "moab/Core.hpp"
#include "moab/Range.hpp"
#include "moab/CN.hpp"
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>
#include <cstdio>
#include <cstdlib>
#include <sys/times.h>
#include <sys/resource.h>
#include <unistd.h>
Go to the source code of this file.
Classes | |
struct | MemStats |
Enumerations | |
enum | Units { HUMAN , BYTES , KILOBYTES , MEGABYTES , GIGABYTES } |
Functions | |
static void | usage (const char *argv0, bool help=false) |
static void | print_memory_stats (moab::Interface &mb, bool per_type=true, bool per_tag=true, bool totals=true, bool sysstats=true) |
static void | do_test_mode () |
int | main (int argc, char *argv[]) |
static bool | is_zero (const MemStats &stats) |
static void | get_mem_stats (moab::Interface &mb, MemStats &data, moab::EntityType type=moab::MBMAXTYPE) |
static std::string | memstr (unsigned long long val) |
static std::string | tag_type_string (moab::Interface &mb, moab::Tag tag) |
static std::string | tag_storage_string (moab::Interface &mb, moab::Tag tag) |
static std::string | center (const char *str, size_t width) |
static unsigned long long | rdiv (unsigned long long num, unsigned long long den) |
Variables | |
Units | UNITS = HUMAN |
enum Units |
|
static |
Definition at line 495 of file mbmem.cpp.
Referenced by moab::OrientedBoxTreeTool::box(), moab::GeomUtil::box_elem_overlap(), moab::GeomUtil::box_hex_overlap(), moab::GeomUtil::box_tet_overlap(), moab::Bvh_tree< _Entity_handles, _Box, _Moab, _Parametrizer >::bucket_index(), moab::BVHTree::Bucket::bucket_index(), moab::common_tree::compute_box_center(), moab::BoundBox::compute_center(), moab::GeomTopoTool::get_bounding_coords(), moab::GeomTopoTool::get_obb(), moab::FBEngine::getEntBoundBox(), moab::IntxUtils::global_gnomonic_projection(), moab::TempestOnlineMap::LinearRemapGLLtoGLL2_MOAB(), moab::TempestOnlineMap::LinearRemapSE4_Tempest_MOAB(), localize_quad_coordinates(), main(), moab::Bvh_tree< _Entity_handles, _Box, _Moab, _Parametrizer >::median_order(), obbvis_create(), moab::HiReconstruction::obtain_nring_ngbvs(), print_memory_stats(), moab::OrientedBoxTreeTool::sphere_intersect_triangles(), and moab::AdaptiveKDTree::sphere_intersect_triangles().
|
static |
Definition at line 512 of file mbmem.cpp.
References moab::Range::begin(), moab::Range::clear(), moab::Range::end(), ErrorCode, mb, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_BIT, MB_TYPE_DOUBLE, MB_TYPE_INTEGER, MBQUAD, MBTRI, MBVERTEX, print_memory_stats(), and moab::Range::size().
Referenced by main().
|
static |
Definition at line 352 of file mbmem.cpp.
References MemStats::adjacency_amortized, MemStats::adjacency_storage, MemStats::entity_amortized, MemStats::entity_storage, mb, MBMAXTYPE, MemStats::tag_amortized, MemStats::tag_storage, MemStats::total_amortized, and MemStats::total_storage.
Referenced by print_memory_stats().
|
static |
Definition at line 347 of file mbmem.cpp.
References MemStats::total_amortized.
Referenced by print_memory_stats().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 60 of file mbmem.cpp.
References BYTES, do_test_mode(), ErrorCode, GIGABYTES, HUMAN, KILOBYTES, mb, MB_SUCCESS, MEGABYTES, print_memory_stats(), UNITS, and usage().
|
static |
|
static |
Definition at line 162 of file mbmem.cpp.
References MemStats::adjacency_amortized, MemStats::adjacency_storage, center(), MemStats::entity_amortized, MemStats::entity_storage, moab::CN::EntityTypeName(), ErrorCode, get_mem_stats(), is_zero(), mb, MB_SUCCESS, MBMAXTYPE, MBVERTEX, memstr(), MemStats::tag_amortized, MemStats::tag_storage, tag_storage_string(), tag_type_string(), MemStats::total_amortized, and MemStats::total_storage.
Referenced by do_test_mode(), and main().
|
static |
|
static |
Definition at line 475 of file mbmem.cpp.
References ErrorCode, mb, MB_SUCCESS, MB_TAG_BIT, MB_TAG_DENSE, MB_TAG_SPARSE, and TagType.
Referenced by print_memory_stats().
|
static |
Definition at line 425 of file mbmem.cpp.
References ErrorCode, mb, MB_SUCCESS, MB_TYPE_BIT, MB_TYPE_DOUBLE, MB_TYPE_HANDLE, MB_TYPE_INTEGER, MB_TYPE_OPAQUE, MB_VARIABLE_DATA_LENGTH, and size.
Referenced by print_memory_stats().
|
static |