mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-11 15:43:02 -04:00
parent
b30508aef8
commit
84ec839b04
12 changed files with 553 additions and 14 deletions
|
@ -55,9 +55,10 @@ export const traceFunction = !IS_DEV
|
|||
const traceName = mapper?.(...args) ?? name;
|
||||
|
||||
beginTrace(traceName, ...arguments);
|
||||
const result = f.apply(this, args);
|
||||
finishTrace(traceName);
|
||||
|
||||
return result;
|
||||
try {
|
||||
return f.apply(this, args);
|
||||
} finally {
|
||||
finishTrace(traceName);
|
||||
}
|
||||
} as F;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue