1 #include "uniconfroot.h"
11 system(
WvString(
"ps -o pid,sz,vsz,rss,trs,drs,dsiz,cmd %s",
17 before = (
const char *)sbrk(0);
23 const char *after = (
const char *)sbrk(0);
25 printf(
"%p, %p, %ld\n", before, after, (
long)(after-before));
32 printf(
"wvstring: %d bytes\n",
sizeof(
WvString));
42 uni.
mount(
"ini:/tmp/dns.ini2",
true);
44 system(
"touch /tmp/dns.ini2");
47 system(
"touch /tmp/dns.ini2");
50 for (
int x = 0; x < 1e8; x++)
52 system(
"touch /tmp/dns.ini2");
60 WvString s(
"this is a big long line with a really big "
61 "long string involved in it somehow");
62 for (
int i = 0; i < 18000; i++)
74 WvString s(
"this is a big long line with a really big "
75 "long string involved in it somehow");
77 for (
int i = 0; i < 18000; i++)
78 l.append(&(a[i] = s),
false);