Lines Matching defs:loc
181 static void PrintLocation(const ReportLocation *loc) {
186 if (loc->type == ReportLocationGlobal) {
187 const DataInfo &global = loc->global;
196 } else if (loc->type == ReportLocationHeap) {
198 const char *object_type = GetObjectTypeFromTag(loc->external_tag);
201 loc->heap_chunk_size, loc->heap_chunk_start,
202 thread_name(thrbuf, loc->tid));
205 object_type, loc->heap_chunk_size, loc->heap_chunk_start,
206 thread_name(thrbuf, loc->tid));
209 } else if (loc->type == ReportLocationStack) {
210 Printf(" Location is stack of %s.\n\n", thread_name(thrbuf, loc->tid));
211 } else if (loc->type == ReportLocationTLS) {
212 Printf(" Location is TLS of %s.\n\n", thread_name(thrbuf, loc->tid));
213 } else if (loc->type == ReportLocationFD) {
215 loc->fd, thread_name(thrbuf, loc->tid));
220 PrintStack(loc->stack);
421 static void PrintLocation(const ReportLocation *loc) {
422 switch (loc->type) {
426 loc->heap_chunk_size, loc->heap_chunk_start);
427 if (loc->tid == kMainThreadId)
430 Printf("goroutine %d:\n", loc->tid);
431 PrintStack(loc->stack);
437 loc->global.name, loc->global.size, loc->global.start,
438 loc->global.file, loc->global.line);