fix(os): add print trace func.
This commit is contained in:
parent
32e6557353
commit
42204611ba
|
@ -103,8 +103,10 @@ Dwarf_Debug tDbg;
|
||||||
static TdThreadOnce traceThreadInit = PTHREAD_ONCE_INIT;
|
static TdThreadOnce traceThreadInit = PTHREAD_ONCE_INIT;
|
||||||
|
|
||||||
void endTrace() {
|
void endTrace() {
|
||||||
|
if (traceThreadInit != PTHREAD_ONCE_INIT) {
|
||||||
delete_lookup_table(&lookup_table);
|
delete_lookup_table(&lookup_table);
|
||||||
dwarf_finish(tDbg);
|
dwarf_finish(tDbg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
void startTrace() {
|
void startTrace() {
|
||||||
int ret;
|
int ret;
|
||||||
|
|
Loading…
Reference in New Issue