indent doc.odin, makes it render nicely on the documentation site

This commit is contained in:
Laytan
2024-02-05 18:59:08 +01:00
parent 95808fd2e7
commit 02b8fefa30
+14 -15
View File
@@ -1,14 +1,14 @@
/*
import "core:prof/spall"
import "core:prof/spall"
spall_ctx: spall.Context
spall_buffer: spall.Buffer
spall_ctx: spall.Context
spall_buffer: spall.Buffer
foo :: proc() {
foo :: proc() {
spall.SCOPED_EVENT(&spall_ctx, &spall_buffer, #procedure)
}
}
main :: proc() {
main :: proc() {
spall_ctx = spall.context_create("trace_test.spall")
defer spall.context_destroy(&spall_ctx)
@@ -21,19 +21,18 @@ main :: proc() {
for i := 0; i < 9001; i += 1 {
foo()
}
}
}
// Automatic profiling of every procedure:
// Automatic profiling of every procedure:
@(instrumentation_enter)
spall_enter :: proc "contextless" (proc_address, call_site_return_address: rawptr, loc: runtime.Source_Code_Location) {
@(instrumentation_enter)
spall_enter :: proc "contextless" (proc_address, call_site_return_address: rawptr, loc: runtime.Source_Code_Location) {
spall._buffer_begin(&spall_ctx, &spall_buffer, "", "", loc)
}
}
@(instrumentation_exit)
spall_exit :: proc "contextless" (proc_address, call_site_return_address: rawptr, loc: runtime.Source_Code_Location) {
@(instrumentation_exit)
spall_exit :: proc "contextless" (proc_address, call_site_return_address: rawptr, loc: runtime.Source_Code_Location) {
spall._buffer_end(&spall_ctx, &spall_buffer)
}
}
*/
package spall