Lines Matching defs:cl
104 struct codeline* cl = (struct codeline*)rbtree_search(tree, key);
105 if(!cl) {
106 cl = calloc(1, sizeof(*cl));
107 if(!cl) return 0;
108 cl->codeline = strdup(key);
109 if(!cl->codeline) {
110 free(cl);
113 cl->func = strdup(func);
114 if(!cl->func) {
115 free(cl->codeline);
116 free(cl);
119 cl->alloc = 0;
120 cl->node.key = cl->codeline;
121 (void)rbtree_insert(tree, &cl->node);
123 return cl;
134 struct codeline* cl = 0;
144 cl = get_codeline(tree, codeline, name);
145 if(!cl)
147 cl->alloc += num;
148 cl->calls ++;
159 struct codeline* cl = 0;
170 cl = get_codeline(tree, codeline, name);
171 if(!cl)
173 cl->alloc += num*sz;
174 cl->calls ++;
228 struct codeline* cl;
230 RBTREE_FOR(cl, struct codeline*, tree) {
231 printf("%12lld / %8lld in %s %s\n", (long long)cl->alloc,
232 (long long)cl->calls, cl->codeline, cl->func);
233 total += cl->alloc;
234 tcalls += cl->calls;