Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

timecraft: add profile resource #33

Merged
merged 7 commits into from
May 30, 2023
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
26 changes: 0 additions & 26 deletions format/logsegment/logsegment.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -42,32 +42,6 @@ table Record {
function_call:[ubyte];
}

// Details about a function call.
table FunctionCall {
// State of the WebAssembly stack before and after the function was called.
// The first {param_count} values are the input parameters, and the remaining
// values are the return values.
stack:[ulong];
// Captured sections of the WebAssembly module's linear memory, stored
// contiguously and indexed by {memory_access}.
memory:[ubyte];
// Ordered collection of memory reads and writes made by the function.
memory_access:[MemoryAccess];
}

// MemoryAccess represents the capture of a section of memory.
struct MemoryAccess {
// Byte offset in the WebAssembly module's linear memory where the memory
// access starts.
offset:uint;
// Byte offset into {FunctionCall.memory}. The length of the captured memory
// can be derived by comparing the {index_offset} with that of the next
// {FunctionCall.memory_access}. The length of the final memory region can
// be derived by comparing the {index_offset} with the length of
// {FunctionCall.memory}.
index_offset:uint;
}

Comment on lines -45 to -70
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unrelated to the actual change but was unused.

root_type RecordBatch;

file_identifier "TL.0";
Expand Down
165 changes: 0 additions & 165 deletions format/logsegment/logsegment_generated.go

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

1 change: 1 addition & 0 deletions format/timecraft.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const (
TypeTimecraftRuntime MediaType = "application/vnd.timecraft.runtime.v1+json"
TypeTimecraftConfig MediaType = "application/vnd.timecraft.config.v1+json"
TypeTimecraftProcess MediaType = "application/vnd.timecraft.process.v1+json"
TypeTimecraftProfile MediaType = "application/vnd.timecraft.profile.v1+pprof"
TypeTimecraftManifest MediaType = "application/vnd.timecraft.manifest.v1+json"
TypeTimecraftModule MediaType = "application/vnd.timecraft.module.v1+wasm"
)
Expand Down
Loading
Loading