Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Run tests
run: cargo test --verbose
- name: Build (release)
run: cargo build --target x86_64-unknown-linux-gnu --release
run: cargo build --target x86_64-unknown-linux-gnu --release --locked
- uses: actions/upload-artifact@v4
with:
name: Linux Build
Expand All @@ -38,8 +38,8 @@ jobs:
- name: Run tests
run: cargo test --verbose
- name: Build (release)
run: cargo build --target x86_64-pc-windows-msvc --release
run: cargo build --target x86_64-pc-windows-msvc --release --locked
- uses: actions/upload-artifact@v4
with:
name: Windows Build
path: target/x86_64-pc-windows-msvc/release/rtracy.exe
path: target/x86_64-pc-windows-msvc/release/rtracy.exe
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rtracy"
version = "0.1.3"
version = "0.1.4"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# RTracy server
This is server for streaming .utacy files generated by https://github.com/ParadiseSS13/byond-tracy to tracy https://github.com/wolfpld/tracy profiler

Works with Tracy 0.11.1 (protocol 69)
Works with Tracy 0.12.2 (protocol 74)

This server allow partial streaming of large snapshots to prevent huge memory usage

Expand Down
4 changes: 2 additions & 2 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ pub fn handle_client(stream: TcpStream, header: &UTracyHeader, locations: &Vec<S
return Err(format!("Invalid client, expected \"TracyPrf\", got {}", std::str::from_utf8(&client_name).unwrap()));
}
let version: u32 = bincode::decode_from_reader(&mut reader, BINCODE_CONFIG).map_err(|e| format!("{}", e))?;
if version != 69 {
if version != 74 {
writer.write(&[HandshakeStatus::HandshakeProtocolMismatch as u8]).map_err(|e| format!("{}", e))?;
return Err(format!("Invalid client version, expected 69, got {}", version));
return Err(format!("Invalid client version, expected 74, got {}", version));
}

writer.write(&[HandshakeStatus::HandshakeWelcome as u8]).map_err(|e| format!("{}", e))?;
Expand Down
2 changes: 2 additions & 0 deletions src/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ pub enum QueryResponseType {
MemAllocCallstackNamed,
MemFreeCallstack,
MemFreeCallstackNamed,
MemDiscard,
MemDiscardCallstack,
GpuZoneBegin,
GpuZoneBeginCallstack,
GpuZoneBeginAllocSrcLoc,
Expand Down
Loading