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

Commit

Permalink
Merge pull request #33 from stealthrocket/profile-resource
Browse files Browse the repository at this point in the history
timecraft: add profile resource
  • Loading branch information
achille-roussel committed May 30, 2023
2 parents fe71750 + a8ae16a commit 23261fd
Show file tree
Hide file tree
Showing 14 changed files with 578 additions and 390 deletions.
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;
}

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

0 comments on commit 23261fd

Please sign in to comment.