Forked from
Glasgow Haskell Compiler / GHC
41699 commits behind, 113 commits ahead of the upstream repository.
-
Duncan Coutts authored
The existing GHC.Conc.labelThread will now also emit the the thread label into the eventlog. Profiling tools like ThreadScope could then use the thread labels rather than thread numbers.
Duncan Coutts authoredThe existing GHC.Conc.labelThread will now also emit the the thread label into the eventlog. Profiling tools like ThreadScope could then use the thread labels rather than thread numbers.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ThreadLabels.h 707 B
/* -----------------------------------------------------------------------------
* ThreadLabels.h
*
* (c) The GHC Team 2002-2006
*
* Table of thread labels.
*
* ---------------------------------------------------------------------------*/
#ifndef THREADLABELS_H
#define THREADLABELS_H
#include "BeginPrivate.h"
#if defined(DEBUG)
void initThreadLabelTable (void);
void freeThreadLabelTable (void);
void * lookupThreadLabel (StgWord key);
void removeThreadLabel (StgWord key);
#endif
void labelThread (Capability *cap,
StgTSO *tso,
char *label);
#include "EndPrivate.h"
#endif /* THREADLABELS_H */