Loading...
Searching...
No Matches
su_alloc_stat.h
Go to the documentation of this file.
/*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2005 Nokia Corporation.
*
* Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
#ifndef SU_ALLOC_STAT_H
#define SU_ALLOC_STAT_H
#ifndef SU_ALLOC_H
#include <sofia-sip/su_alloc.h>
#endif
#ifndef SU_TYPES_H
#include <sofia-sip/su_types.h>
#endif
SOFIA_BEGIN_DECLS
typedef struct su_home_stat_t su_home_stat_t;
SU_DLL void su_home_init_stats(su_home_t *h);
SU_DLL void su_home_get_stats(su_home_t *, int include_clones,
su_home_stat_t *stats, isize_t statssize);
SU_DLL void su_home_stat_add(su_home_stat_t *total,
su_home_stat_t const *hs);
struct su_home_stat_t
{
int hs_size;
usize_t hs_clones;
usize_t hs_rehash;
usize_t hs_blocksize;
struct {
unsigned hsp_size;
unsigned hsp_used;
} hs_preload;
struct {
uint64_t hsa_number;
uint64_t hsa_bytes;
uint64_t hsa_rbytes;
uint64_t hsa_maxrbytes;
uint64_t hsa_preload;
} hs_allocs;
struct {
uint64_t hsf_number;
uint64_t hsf_bytes;
uint64_t hsf_rbytes;
uint64_t hsf_preload;
} hs_frees;
struct {
uint64_t hsb_number;
uint64_t hsb_bytes;
uint64_t hsb_rbytes;
} hs_blocks;
};
SOFIA_END_DECLS
#endif /* ! defined(SU_ALLOC_H) */
su_alloc.h
Home-based memory management interface.
su_home_t
SU_HOME_T su_home_t
Memory home type.
Definition su_alloc.h:50
su_home_init_stats
void su_home_init_stats(su_home_t *h)
Initialize statistics structure.
Definition su_alloc.c:1662
su_home_get_stats
void su_home_get_stats(su_home_t *, int include_clones, su_home_stat_t *stats, isize_t statssize)
Retrieve statistics from memory home.
Definition su_alloc.c:1693
su_types.h
Basic integer types for su library.
uint64_t
SU_U64_T uint64_t
64-bit unsigned integer
Definition su_types.h:83

Sofia-SIP 1.12.11devel - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.