zmalloc_getinfo() test
This commit is contained in:
parent
baae78bd22
commit
eaeee86922
|
@ -16,17 +16,9 @@ long_line_behaviour=1
|
||||||
long_line_column=72
|
long_line_column=72
|
||||||
|
|
||||||
[files]
|
[files]
|
||||||
current_page=2
|
current_page=1
|
||||||
FILE_NAME_0=654;C;0;16;1;1;1;/home/kolan/dev/c/realloc_speed_test/realloc_speed_test_c.c;0
|
FILE_NAME_0=781;C;0;16;1;1;1;/home/kolan/dev/c/realloc_speed_test/realloc_speed_test_c.c;0
|
||||||
FILE_NAME_1=275;C;0;16;1;1;1;/home/kolan/dev/c/realloc_speed_test/smart_string.c;0
|
FILE_NAME_1=515;C++;0;16;1;1;1;/home/kolan/dev/c/realloc_speed_test/realloc_speed_test_cpp.cpp;0
|
||||||
FILE_NAME_2=241;C;0;16;1;1;1;/home/kolan/dev/c/realloc_speed_test/smart_string.h;0
|
|
||||||
FILE_NAME_3=428;C++;0;16;1;1;1;/home/kolan/dev/c/realloc_speed_test/realloc_speed_test_cpp.cpp;0
|
|
||||||
FILE_NAME_4=654;Make;0;16;1;1;1;/home/kolan/dev/c/realloc_speed_test/Makefile;0
|
|
||||||
FILE_NAME_5=489;C;0;16;1;1;1;/home/kolan/projects/include/xerror.h;0
|
|
||||||
FILE_NAME_6=1209;C;0;16;1;1;1;/usr/include/err.h;0
|
|
||||||
FILE_NAME_7=879;C;0;16;1;1;1;/home/kolan/projects/include/xerror.c;0
|
|
||||||
FILE_NAME_8=0;C;0;16;1;1;1;/home/kolan/projects/include/xmalloc.c;0
|
|
||||||
FILE_NAME_9=0;C;0;16;1;1;1;/home/kolan/projects/include/xmalloc.h;0
|
|
||||||
|
|
||||||
[build-menu]
|
[build-menu]
|
||||||
NF_00_LB=_Сделать
|
NF_00_LB=_Сделать
|
||||||
|
|
|
@ -16,13 +16,11 @@ long_line_behaviour=1
|
||||||
long_line_column=72
|
long_line_column=72
|
||||||
|
|
||||||
[files]
|
[files]
|
||||||
current_page=5
|
current_page=0
|
||||||
FILE_NAME_0=40;C;0;16;1;1;1;/home/kolan/dev/c/zmalloc/zmalloc_test.c;0
|
FILE_NAME_0=1515;C;0;16;1;1;1;/home/kolan/dev/c/zmalloc/zmalloc_test.c;0
|
||||||
FILE_NAME_1=1772;Make;0;16;1;1;1;/home/kolan/dev/c/zmalloc/Makefile;0
|
FILE_NAME_1=1373;C;0;16;1;1;1;/home/kolan/projects/include/zmalloc.c;0
|
||||||
FILE_NAME_2=0;C;0;16;1;1;1;/home/kolan/projects/include/xmalloc.c;0
|
FILE_NAME_2=1082;C;0;16;1;1;1;/home/kolan/projects/include/zmalloc.h;0
|
||||||
FILE_NAME_3=658;C;0;16;1;1;1;/home/kolan/projects/include/xmalloc.h;0
|
FILE_NAME_3=571;Make;0;16;1;1;1;/home/kolan/dev/c/zmalloc/Makefile;0
|
||||||
FILE_NAME_4=21;C;0;16;1;1;1;/home/kolan/projects/include/zmalloc.c;0
|
|
||||||
FILE_NAME_5=6;C;0;16;1;1;1;/home/kolan/projects/include/zmalloc.h;0
|
|
||||||
|
|
||||||
[build-menu]
|
[build-menu]
|
||||||
NF_00_LB=_Сделать
|
NF_00_LB=_Сделать
|
||||||
|
|
|
@ -11,6 +11,14 @@
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
// тест zmalloc_getinfo()
|
||||||
|
//~ void *p1 = zmalloc(48);
|
||||||
|
//~ struct zmalloc_s zms;
|
||||||
|
//~ zmalloc_getinfo(p1, &zms);
|
||||||
|
//~ printf("all=%lu, len=%lu\n", zms.all, zms.len);
|
||||||
|
//~ zfree(&p1);
|
||||||
|
|
||||||
|
|
||||||
if (argc != 4) {
|
if (argc != 4) {
|
||||||
fputs("Usage: realloc_speed_test_cpp iterations nobj maxsz\n", stderr);
|
fputs("Usage: realloc_speed_test_cpp iterations nobj maxsz\n", stderr);
|
||||||
exit(-1);
|
exit(-1);
|
||||||
|
|
Loading…
Reference in New Issue