This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
768828b
commit aaec428
Showing
26 changed files
with
1,599 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: windows-2022 | ||
|
||
steps: | ||
- name: Checkout files | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup .NET Core SDK 6 | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
- name: Install dependencies | ||
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet build --configuration Release --no-restore |
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,199 @@ | ||
namespace ParaTracyReplay { | ||
/// <summary> | ||
/// Contains a bunch of constants Tracy needs. | ||
/// </summary> | ||
internal class Constants { | ||
// File protocol stuff | ||
|
||
/// <summary> | ||
/// The expected file signature that this program is designed to decode. | ||
/// </summary> | ||
public const ulong FileSignature = 0x6D64796361727475; | ||
|
||
/// <summary> | ||
/// The expected file version that this program is designed to decode. | ||
/// </summary> | ||
public const uint FileVersion = 2; | ||
|
||
/// <summary> | ||
/// The event ID for a zone begin in the file. | ||
/// </summary> | ||
public const byte FileEventZoneBegin = 15; | ||
|
||
/// <summary> | ||
/// The event ID for a zone end in the file. | ||
/// </summary> | ||
public const byte FileEventZoneEnd = 17; | ||
|
||
/// <summary> | ||
/// The event ID for a zone colour in the file. | ||
/// </summary> | ||
public const byte FileEventZoneColour = 62; | ||
|
||
/// <summary> | ||
/// The event ID for a marked frame in the file. | ||
/// </summary> | ||
public const byte FileEventFrameMark = 64; | ||
|
||
// Network protocol stuff | ||
/// <summary> | ||
/// The maximum size of a network frame that the Tracy client can capture. | ||
/// </summary> | ||
public const int NetworkMaxFrameSize = 256 * 1024; | ||
|
||
/// <summary> | ||
/// Packet ID for a welcome handshake. | ||
/// </summary> | ||
public const byte NetworkHandshakeWelcome = 0x01; | ||
|
||
/// <summary> | ||
/// Packet ID for a protocol mismatch. | ||
/// </summary> | ||
public const byte NetworkHandshakeProtocolMismatch = 0x02; | ||
|
||
/// <summary> | ||
/// Packet ID for a zone begin packet. | ||
/// </summary> | ||
public const byte NetworkEventZoneBegin = 15; | ||
|
||
/// <summary> | ||
/// Packet ID for a zone end packet. | ||
/// </summary> | ||
public const byte NetworkEventZoneEnd = 17; | ||
|
||
/// <summary> | ||
/// Packet ID for a termination packet. | ||
/// </summary> | ||
public const byte NetworkEventTerminate = 55; | ||
|
||
/// <summary> | ||
/// Packet ID for a thread context packet. | ||
/// </summary> | ||
public const byte NetworkEventThreadContext = 57; | ||
|
||
/// <summary> | ||
/// Packet ID for a zone colour packet. | ||
/// </summary> | ||
public const byte NetworkEventZoneColour = 62; | ||
|
||
/// <summary> | ||
/// Packet ID for a frame mark packet. | ||
/// </summary> | ||
public const byte NetworkEventFrameMark = 64; | ||
|
||
/// <summary> | ||
/// Packet ID for a source location packet. | ||
/// </summary> | ||
public const byte NetworkEventSrcloc = 67; | ||
|
||
/// <summary> | ||
/// Packet ID for a response to a no-op query. | ||
/// </summary> | ||
public const byte NetworkResponseServerQueryNoop = 87; | ||
|
||
/// <summary> | ||
/// Packet ID for a response to a source code request to say it isnt available. | ||
/// </summary> | ||
public const byte NetworkResponseSourceCodeNotAvailable = 88; | ||
|
||
/// <summary> | ||
/// Packet ID for a response to a source code request to say it isnt available. | ||
/// </summary> | ||
public const byte NetworkResponseSymbolCodeNotAvailable = 89; | ||
|
||
/// <summary> | ||
/// Packet ID for a response containing string data. | ||
/// </summary> | ||
public const byte NetworkResponseStringData = 94; | ||
|
||
/// <summary> | ||
/// Packet ID for a response containing a thread name. | ||
/// </summary> | ||
public const byte NetworkResponseThreadName = 95; | ||
|
||
/// <summary> | ||
/// Packet ID for a request about a termination. | ||
/// </summary> | ||
public const byte NetworkQueryTerminate = 0; | ||
|
||
/// <summary> | ||
/// Packet ID for a request about a string. | ||
/// </summary> | ||
public const byte NetworkQueryString = 1; | ||
|
||
/// <summary> | ||
/// Packet ID for a request about a thread string. | ||
/// </summary> | ||
public const byte NetworkQueryThreadString = 2; | ||
|
||
/// <summary> | ||
/// Packet ID for a request about a source location. | ||
/// </summary> | ||
public const byte NetworkQuerySrcloc = 3; | ||
|
||
/// <summary> | ||
/// Packet ID for a request about a plot name. | ||
/// </summary> | ||
public const byte NetworkQueryPlotName = 4; | ||
|
||
/// <summary> | ||
/// Packet ID for a request about a frame name. | ||
/// </summary> | ||
public const byte NetworkQueryFrameName = 5; | ||
|
||
/// <summary> | ||
/// Packet ID for a request about a query parameter. | ||
/// </summary> | ||
public const byte NetworkQueryParameter = 6; | ||
|
||
/// <summary> | ||
/// Packet ID for a request about a fiber name. | ||
/// </summary> | ||
public const byte NetworkQueryFiberName = 7; | ||
|
||
/// <summary> | ||
/// Packet ID for a disconnect. | ||
/// </summary> | ||
public const byte NetworkQueryDisconnect = 8; | ||
|
||
/// <summary> | ||
/// Packet ID for a request about a callstack frame. | ||
/// </summary> | ||
public const byte NetworkQueryCallstackFrame = 9; | ||
|
||
/// <summary> | ||
/// Packet ID for a request about an external name. | ||
/// </summary> | ||
public const byte NetworkQueryExternalName = 10; | ||
|
||
/// <summary> | ||
/// Packet ID for a request about a symbol. | ||
/// </summary> | ||
public const byte NetworkQuerySymbol = 11; | ||
|
||
/// <summary> | ||
/// Packet ID for a request about symbol code. | ||
/// </summary> | ||
public const byte NetworkQuerySymbolCode = 12; | ||
|
||
/// <summary> | ||
/// Packet ID for a request about a code location. | ||
/// </summary> | ||
public const byte NetworkQueryCodeLocation = 13; | ||
|
||
/// <summary> | ||
/// Packet ID for a request about source code. | ||
/// </summary> | ||
public const byte NetworkQuerySourceCode = 14; | ||
|
||
/// <summary> | ||
/// Packet ID for a request about data transfer. | ||
/// </summary> | ||
public const byte NetworkQueryDataTransfer = 15; | ||
|
||
/// <summary> | ||
/// Packet ID for a request about partial data transfer. | ||
/// </summary> | ||
public const byte NetworkQueryDataTransferPart = 16; | ||
} | ||
} |
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,25 @@ | ||
The MIT License (MIT) | ||
===================== | ||
|
||
Copyright © `2023` `AffectedArc07` | ||
|
||
Permission is hereby granted, free of charge, to any person | ||
obtaining a copy of this software and associated documentation | ||
files (the “Software”), to deal in the Software without | ||
restriction, including without limitation the rights to use, | ||
copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the | ||
Software is furnished to do so, subject to the following | ||
conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.