({ n, method })
| 35 | } |
| 36 | |
| 37 | function main({ n, method }) { |
| 38 | const { |
| 39 | trace, |
| 40 | isTraceCategoryEnabled, |
| 41 | } = common.binding('trace_events'); |
| 42 | |
| 43 | switch (method) { |
| 44 | case 'trace': |
| 45 | doTrace(n, trace); |
| 46 | break; |
| 47 | case 'isTraceCategoryEnabled': |
| 48 | doIsTraceCategoryEnabled(n, isTraceCategoryEnabled); |
| 49 | break; |
| 50 | default: |
| 51 | throw new Error(`Unexpected method "${method}"`); |
| 52 | } |
| 53 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…