-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added new frame type for recording multi thread * Handle start all threads frame message * Add multithread flag to ETTraceRunner * Added logic to record all threads * Add threads stacks to response data * Save each thread's stacks to a different json * Save thread names and create merged json * Add {} to single line ifs * Use the multithread format to record single thread traces * Code refactor * Change JSON output depending on the number of threads * More code refactor * Fix if logic * Serve main thread flamegraph through http server * Skip merged flamegraph generation while UI is not ready * Removed Threads to JSON logic
- Loading branch information
Showing
11 changed files
with
257 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// ThreadNode.swift | ||
// | ||
// | ||
// Created by Itay Brenner on 18/8/23. | ||
// | ||
|
||
import Foundation | ||
|
||
@objc | ||
public class ThreadNode: NSObject { | ||
@objc | ||
public let threadName: String? | ||
|
||
@objc | ||
public var nodes: FlameNode | ||
|
||
public init(nodes: FlameNode, | ||
threadName: String? = nil) { | ||
self.nodes = nodes | ||
self.threadName = threadName | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.