Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jan 17, 2025
1 parent f1aece1 commit b84ddfc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion api/data/PageReader.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ component {
var meta = mid( str, 5, endComment - 5 );
//systemOutput( "!!" & meta & "!!", true );
if ( !isJson( meta ) ){
throw "metadata is not json [#arguments.filePath#]";
throw (message="metadata is not json [#arguments.filePath#]", detail=meta);
}
var body = mid( str, endComment + 3 );
if ( len( trim( body ) ) eq 0 )
Expand Down
18 changes: 9 additions & 9 deletions docs/03.reference/01.functions/logallthreads/function.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
title: logAllThreads
title: LogAllThreads
id: function-logallthreads
related:
categories:
- system
- log
- debugging
- threads
- performance
- analysis
- debugging
- server
- system
- thread
---

Creates detailed thread stack trace logs in JSONL format for performance analysis and debugging.

This function captures stack traces from all running threads at specified intervals for a given duration.

It executes asynchronously, returning immediately after starting the logging process, making it ideal
for analyzing specific code segments by initiating logging just before the target code execution.

The output format is JSONL (JSON Lines), where each line represents a separate JSON object containing:

- Timestamp offset in milliseconds from 1/1/1970 00:00:00 UTC (Unix 0)
Expand All @@ -25,4 +25,4 @@ This data can be used for:
- Performance bottleneck identification
- Thread behavior analysis
- Deadlock detection
- Resource usage patterns
- Resource usage patterns
6 changes: 3 additions & 3 deletions docs/recipes/tag-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"Syntax",
"tag",
"function",
"Script"
"throw"
"abort"
"Script",
"throw",
"abort",
"return"
]
}
Expand Down

0 comments on commit b84ddfc

Please sign in to comment.