Lines Matching refs:memlist
40 CSCmemListType memlist;
44 printf ("Create a memlist\n");
46 printf ("memlist = CSCmemInit (\"my mem list\", NULL, NULL, NULL, CSC_NO_PROFILING);\n");
47 memlist = CSCmemInit ("my mem list", NULL, NULL, NULL, CSC_NO_PROFILING);
48 printf ("\tmemlist = %p\n", memlist);
49 printf ("\n\tCSCmemListPrintProfile (memlist) => \n");
50 stat = CSCmemListPrintProfile (memlist, CSC_SHOW_ALL);
54 printf ("Delete the memlist\n");
56 printf ("stat = CSCmemDone (memlist);\n");
57 stat = CSCmemDone (memlist);
63 printf ("Create a memlist\n");
65 printf ("memlist = CSCmemInit (\"my mem list\", tagger, monitor, mondata, CSC_DO_PROFILING);\n");
66 memlist = CSCmemInit ("my mem list", tagger, monitor, mondata, CSC_DO_PROFILING);
67 printf ("\tmemlist = %p\n", memlist);
68 printf ("\n\tCSCmemListPrintProfile (memlist) => \n");
69 stat = CSCmemListPrintProfile (memlist, CSC_SHOW_ALL);
73 printf ("Allocate some memory on the memlist\n");
75 printf ("stat = CSCmemAlloc (memlist, &data, 1, 20, 5);\n");
76 stat = CSCmemAlloc (memlist, &data, 1, 20, 5);
78 printf ("\n\tCSCmemListPrintProfile (memlist) => \n");
79 stat = CSCmemListPrintProfile (memlist, CSC_SHOW_ALL);
83 printf ("Allocate some memory on the memlist\n");
85 printf ("stat = CSCmemAlloc (memlist, &data, 10, 20, 6);\n");
86 stat = CSCmemAlloc (memlist, &data, 10, 20, 6);
88 printf ("\n\tCSCmemListPrintProfile (memlist) => \n");
89 stat = CSCmemListPrintProfile (memlist, CSC_SHOW_ALL);
93 printf ("Allocate some memory on the memlist\n");
95 printf ("stat = CSCmemAlloc (memlist, &data, 7, 20, 7);\n");
96 stat = CSCmemAlloc (memlist, &data, 7, 20, 7);
98 printf ("\n\tCSCmemListPrintProfile (memlist) => \n");
99 stat = CSCmemListPrintProfile (memlist, CSC_SHOW_ALL);
103 printf ("Free some memory on the memlist\n");
105 printf ("stat = CSCmemFree (memlist, &data, 8);\n");
106 stat = CSCmemFree (memlist, &data, 8);
108 printf ("\n\tCSCmemListPrintProfile (memlist) => \n");
109 stat = CSCmemListPrintProfile (memlist, CSC_SHOW_ALL);
113 printf ("Free all memory on the memlist\n");
115 printf ("stat = CSCmemListFree (memlist, 9);\n");
116 stat = CSCmemListFree (memlist, 9);
118 printf ("\n\tCSCmemListPrintProfile (memlist) => \n");
119 stat = CSCmemListPrintProfile (memlist, CSC_SHOW_ALL);
123 printf ("Delete the memlist\n");
125 printf ("stat = CSCmemDone (memlist);\n");
126 stat = CSCmemDone (memlist);
140 CSCmemListType memlist;
165 printf ("Creating a memlist:\n");
166 printf ("memlist = CSCmemInit (\"timer list\", NULL, monitor, NULL, CSC_DO_PROFILING);\n");
167 memlist = CSCmemInit ("timer list", NULL, monitor, NULL, CSC_DO_PROFILING);
168 printf ("memlist = %p: ", memlist);
169 if (memlist != NULL)
192 printf ("=> Iterations of CSCmemAlloc()/CSCmemFree() pairs on the memlist... ");
197 (void)CSCmemAlloc (memlist, &data, 1, 10, 0);
198 (void)CSCmemFree (memlist, &data, 0);
202 (void)CSCmemListFree (memlist, 0);
203 printf ("=> Iterations of CSCmemAlloc() on the memlist... ");
207 (void)CSCmemAlloc (memlist, &data, 1, 10, 0);
210 printf ("=> CSCmemListFree() on the memlist... ");
213 (void)CSCmemListFree (memlist, 0);
219 printf ("=> Iterations of CSCmemAlloc()/CSCmemFree() pairs on the memlist... ");
224 (void)CSCmemAlloc (memlist, &data, 1, 100, 0);
225 (void)CSCmemFree (memlist, &data, 0);
229 (void)CSCmemListFree (memlist, 0);
230 printf ("=> Iterations of CSCmemAlloc() on the memlist... ");
234 (void)CSCmemAlloc (memlist, &data, 1, 100, 0);
237 printf ("=> CSCmemListFree() on the memlist... ");
240 (void)CSCmemListFree (memlist, 0);
246 printf ("=> Iterations of CSCmemAlloc()/CSCmemFree() pairs on the memlist... ");
251 (void)CSCmemAlloc (memlist, &data, 1, 1000, 0);
252 (void)CSCmemFree (memlist, &data, 0);
256 (void)CSCmemListFree (memlist, 0);
257 printf ("=> Iterations of CSCmemAlloc() on the memlist... ");
261 (void)CSCmemAlloc (memlist, &data, 1, 1000, 0);
264 printf ("=> CSCmemListFree() on the memlist... ");
267 (void)CSCmemListFree (memlist, 0);
273 printf ("=> Iterations of CSCmemAlloc()/CSCmemFree() pairs on the memlist... ");
278 (void)CSCmemAlloc (memlist, &data, 1, 5000, 0);
279 (void)CSCmemFree (memlist, &data, 0);
283 (void)CSCmemListFree (memlist, 0);
284 printf ("=> Iterations of CSCmemAlloc() on the memlist... ");
288 (void)CSCmemAlloc (memlist, &data, 1, 5000, 0);
291 printf ("=> CSCmemListFree() on the memlist... ");
294 (void)CSCmemListFree (memlist, 0);
298 (void)CSCmemDone (memlist);