From 1100562e29f6476448b656dbddd4cf22505523f6 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 10 Mar 2024 14:59:14 +0100 Subject: Move back to JBMAFP --- .../posts/valgrind-callgrind-svg/out.zig.svg | 912 +++++++++++++++++++++ 1 file changed, 912 insertions(+) create mode 100644 static/assets/posts/valgrind-callgrind-svg/out.zig.svg (limited to 'static/assets/posts/valgrind-callgrind-svg/out.zig.svg') diff --git a/static/assets/posts/valgrind-callgrind-svg/out.zig.svg b/static/assets/posts/valgrind-callgrind-svg/out.zig.svg new file mode 100644 index 0000000..7a13d3b --- /dev/null +++ b/static/assets/posts/valgrind-callgrind-svg/out.zig.svg @@ -0,0 +1,912 @@ + + + + + + + + + +(below main) + +zig-hi +(below main) +100.00% +(0.06%) + + + + +start.posixCallMainAndExit + +zig-hi +start.posixCallMainAndExit +99.94% +(27.22%) + + + + +(below main)->start.posixCallMainAndExit + + +99.94% + + + + +debug.maybeEnableSegfaultHandler + +zig-hi +debug.maybeEnableSegfaultHandler +25.54% +(0.08%) + + + + +start.posixCallMainAndExit->debug.maybeEnableSegfaultHandler + + +25.54% + + + + +hi.main + +zig-hi +hi.main +9.79% +(0.10%) + + + + +start.posixCallMainAndExit->hi.main + + +9.79% + + + + +os.linux.tls.initStaticTLS + +zig-hi +os.linux.tls.initStaticTLS +23.15% +(0.91%) + + + + +start.posixCallMainAndExit->os.linux.tls.initStaticTLS + + +23.15% + + + + +os.maybeIgnoreSigpipe + +zig-hi +os.maybeIgnoreSigpipe +6.09% +(0.32%) + + + + +start.posixCallMainAndExit->os.maybeIgnoreSigpipe + + +6.09% + + + + +start.expandStackSize + +zig-hi +start.expandStackSize +7.92% +(4.03%) + + + + +start.posixCallMainAndExit->start.expandStackSize + + +7.92% + + + + +Thread.LinuxThreadImpl.getCurrentId + +zig-hi +Thread.LinuxThreadImpl.getCurrentId +0.73% +(0.49%) + + + + +Thread.Mutex.FutexImpl.lock + +zig-hi +Thread.Mutex.FutexImpl.lock +0.94% +(0.94%) + + + + +Thread.Mutex.FutexImpl.unlock + +zig-hi +Thread.Mutex.FutexImpl.unlock +0.78% +(0.54%) + + + + +debug.assert + +zig-hi +debug.assert +6.46% +(6.46%) +27× + + + +Thread.Mutex.FutexImpl.unlock->debug.assert + + +0.24% + + + + +Thread.Mutex.lock + +zig-hi +Thread.Mutex.lock +2.31% +(0.78%) + + + + +Thread.Mutex.lock->Thread.Mutex.FutexImpl.lock + + +0.94% + + + + +Thread.getCurrentId + +zig-hi +Thread.getCurrentId +0.89% +(0.16%) + + + + +Thread.Mutex.lock->Thread.getCurrentId + + +0.59% + + + + +Thread.getCurrentId->Thread.LinuxThreadImpl.getCurrentId + + +0.73% + + + + +Thread.Mutex.unlock + +zig-hi +Thread.Mutex.unlock +1.95% +(0.62%) + + + + +Thread.Mutex.unlock->Thread.Mutex.FutexImpl.unlock + + +0.78% + + + + +Thread.Mutex.unlock->debug.assert + + +0.24% + + + + +Thread.Mutex.unlock->Thread.getCurrentId + + +0.30% + + + + +debug.attachSegfaultHandler + +zig-hi +debug.attachSegfaultHandler +25.46% +(0.32%) + + + + +debug.updateSegfaultHandler + +zig-hi +debug.updateSegfaultHandler +23.74% +(0.72%) + + + + +debug.attachSegfaultHandler->debug.updateSegfaultHandler + + +23.74% + + + + +memcpy + +zig-hi +memcpy +2.85% +(2.85%) + + + + +debug.attachSegfaultHandler->memcpy + + +1.40% + + + + +os.sigaction + +zig-hi +os.sigaction +28.79% +(2.15%) + + + + +debug.updateSegfaultHandler->os.sigaction + + +23.02% + + + + +debug.maybeEnableSegfaultHandler->debug.attachSegfaultHandler + + +25.46% + + + + +debug.print__anon_2981 + +zig-hi +debug.print__anon_2981 +9.69% +(0.49%) + + + + +debug.print__anon_2981->Thread.Mutex.lock + + +2.31% + + + + +debug.print__anon_2981->Thread.Mutex.unlock + + +1.95% + + + + +io.writer.Writer(fs.file.File,error{AccessDenied,Unexpected,DiskQuota,FileTooBig,InputOutput,NoSpaceLeft,DeviceBusy,InvalidArgument,BrokenPipe,SystemResources,OperationAborted,NotOpenForWriting,LockViolation,WouldBlock,ConnectionResetByPeer},(function 'write')).print__anon_3870 + +zig-hi +io.writer.Writer(fs.file.File,error{AccessDenied,Unexpected,DiskQuota,FileTooBig,InputOutput,NoSpaceLeft,DeviceBusy,InvalidArgument,BrokenPipe,SystemResources,OperationAborted,NotOpenForWriting,LockViolation,WouldBlock,ConnectionResetByPeer},(function 'write')).print__anon_3870 +4.51% +(0.19%) + + + + +debug.print__anon_2981->io.writer.Writer(fs.file.File,error{AccessDenied,Unexpected,DiskQuota,FileTooBig,InputOutput,NoSpaceLeft,DeviceBusy,InvalidArgument,BrokenPipe,SystemResources,OperationAborted,NotOpenForWriting,LockViolation,WouldBlock,ConnectionResetByPeer},(function 'write')).print__anon_3870 + + +4.51% + + + + +fmt.format__anon_4094 + +zig-hi +fmt.format__anon_4094 +4.32% +(0.27%) + + + + +io.writer.Writer(fs.file.File,error{AccessDenied,Unexpected,DiskQuota,FileTooBig,InputOutput,NoSpaceLeft,DeviceBusy,InvalidArgument,BrokenPipe,SystemResources,OperationAborted,NotOpenForWriting,LockViolation,WouldBlock,ConnectionResetByPeer},(function 'write')).print__anon_3870->fmt.format__anon_4094 + + +4.32% + + + + +os.linux.getErrno + +zig-hi +os.linux.getErrno +5.18% +(5.18%) +13× + + + +os.sigaction->os.linux.getErrno + + +1.99% + + + + +os.linux.sigaction + +zig-hi +os.linux.sigaction +24.65% +(12.53%) + + + + +os.sigaction->os.linux.sigaction + + +24.65% + + + + +io.writer.Writer(fs.file.File,error{AccessDenied,Unexpected,DiskQuota,FileTooBig,InputOutput,NoSpaceLeft,DeviceBusy,InvalidArgument,BrokenPipe,SystemResources,OperationAborted,NotOpenForWriting,LockViolation,WouldBlock,ConnectionResetByPeer},(function 'write')).writeAll + +zig-hi +io.writer.Writer(fs.file.File,error{AccessDenied,Unexpected,DiskQuota,FileTooBig,InputOutput,NoSpaceLeft,DeviceBusy,InvalidArgument,BrokenPipe,SystemResources,OperationAborted,NotOpenForWriting,LockViolation,WouldBlock,ConnectionResetByPeer},(function 'write')).writeAll +4.05% +(1.28%) + + + + +fmt.format__anon_4094->io.writer.Writer(fs.file.File,error{AccessDenied,Unexpected,DiskQuota,FileTooBig,InputOutput,NoSpaceLeft,DeviceBusy,InvalidArgument,BrokenPipe,SystemResources,OperationAborted,NotOpenForWriting,LockViolation,WouldBlock,ConnectionResetByPeer},(function 'write')).writeAll + + +4.05% + + + + +io.writer.Writer(fs.file.File,error{AccessDenied,Unexpected,DiskQuota,FileTooBig,InputOutput,NoSpaceLeft,DeviceBusy,InvalidArgument,BrokenPipe,SystemResources,OperationAborted,NotOpenForWriting,LockViolation,WouldBlock,ConnectionResetByPeer},(function 'write')).write + +zig-hi +io.writer.Writer(fs.file.File,error{AccessDenied,Unexpected,DiskQuota,FileTooBig,InputOutput,NoSpaceLeft,DeviceBusy,InvalidArgument,BrokenPipe,SystemResources,OperationAborted,NotOpenForWriting,LockViolation,WouldBlock,ConnectionResetByPeer},(function 'write')).write +2.77% +(0.43%) + + + + +io.writer.Writer(fs.file.File,error{AccessDenied,Unexpected,DiskQuota,FileTooBig,InputOutput,NoSpaceLeft,DeviceBusy,InvalidArgument,BrokenPipe,SystemResources,OperationAborted,NotOpenForWriting,LockViolation,WouldBlock,ConnectionResetByPeer},(function 'write')).writeAll->io.writer.Writer(fs.file.File,error{AccessDenied,Unexpected,DiskQuota,FileTooBig,InputOutput,NoSpaceLeft,DeviceBusy,InvalidArgument,BrokenPipe,SystemResources,OperationAborted,NotOpenForWriting,LockViolation,WouldBlock,ConnectionResetByPeer},(function 'write')).write + + +2.77% + + + + +fs.file.File.write + +zig-hi +fs.file.File.write +2.34% +(0.45%) + + + + +os.write + +zig-hi +os.write +1.90% +(0.96%) + + + + +fs.file.File.write->os.write + + +1.90% + + + + +os.write->os.linux.getErrno + + +0.40% + + + + +os.linux.write + +zig-hi +os.linux.write +0.54% +(0.22%) + + + + +os.write->os.linux.write + + +0.54% + + + + +hi.main->debug.print__anon_2981 + + +9.69% + + + + +io.writer.Writer(fs.file.File,error{AccessDenied,Unexpected,DiskQuota,FileTooBig,InputOutput,NoSpaceLeft,DeviceBusy,InvalidArgument,BrokenPipe,SystemResources,OperationAborted,NotOpenForWriting,LockViolation,WouldBlock,ConnectionResetByPeer},(function 'write')).write->fs.file.File.write + + +2.34% + + + + +math.isPowerOfTwo__anon_7182 + +zig-hi +math.isPowerOfTwo__anon_7182 +2.42% +(1.47%) + + + + +math.isPowerOfTwo__anon_7182->debug.assert + + +0.96% + + + + +mem.alignBackward__anon_4065 + +zig-hi +mem.alignBackward__anon_4065 +2.97% +(0.80%) + + + + +mem.alignBackward__anon_4065->debug.assert + + +0.48% + + + + +mem.isValidAlignGeneric__anon_4064 + +zig-hi +mem.isValidAlignGeneric__anon_4064 +3.38% +(0.96%) + + + + +mem.alignBackward__anon_4065->mem.isValidAlignGeneric__anon_4064 + + +1.69% + + + + +mem.isValidAlignGeneric__anon_4064->math.isPowerOfTwo__anon_7182 + + +2.42% + + + + +mem.alignForward__anon_3355 + +zig-hi +mem.alignForward__anon_3355 +6.12% +(0.99%) + + + + +mem.alignForward__anon_3355->debug.assert + + +0.48% + + + + +mem.alignForward__anon_3355->mem.alignBackward__anon_4065 + + +2.97% + + + + +mem.alignForward__anon_3355->mem.isValidAlignGeneric__anon_4064 + + +1.69% + + + + +memset + +zig-hi +memset +9.49% +(9.49%) +17× + + + +os.getrlimit + +zig-hi +os.getrlimit +1.98% +(0.73%) + + + + +os.getrlimit->os.linux.getErrno + + +0.40% + + + + +os.linux.getrlimit + +zig-hi +os.linux.getrlimit +0.85% +(0.22%) + + + + +os.getrlimit->os.linux.getrlimit + + +0.85% + + + + +os.linux.prlimit + +zig-hi +os.linux.prlimit +1.24% +(0.54%) + + + + +os.linux.getrlimit->os.linux.prlimit + + +0.62% + + + + +os.linux.x86_64.syscall4 + +zig-hi +os.linux.x86_64.syscall4 +2.46% +(2.46%) + + + + +os.linux.prlimit->os.linux.x86_64.syscall4 + + +0.70% + + + + +os.linux.setrlimit + +zig-hi +os.linux.setrlimit +0.85% +(0.22%) + + + + +os.linux.setrlimit->os.linux.prlimit + + +0.62% + + + + +os.linux.sigaction->debug.assert + + +3.59% +15× + + + +os.linux.sigaction->memset + + +4.78% +10× + + + +os.linux.sigaction->os.linux.getErrno + + +1.99% + + + + +os.linux.sigaction->os.linux.x86_64.syscall4 + + +1.75% + + + + +os.linux.tls.initTLS + +zig-hi +os.linux.tls.initTLS +19.28% +(7.62%) + + + + +os.linux.tls.initStaticTLS->os.linux.tls.initTLS + + +19.28% + + + + +os.linux.tls.prepareTLS + +zig-hi +os.linux.tls.prepareTLS +2.22% +(1.59%) + + + + +os.linux.tls.initStaticTLS->os.linux.tls.prepareTLS + + +2.22% + + + + +os.linux.tls.setThreadPointer + +zig-hi +os.linux.tls.setThreadPointer +0.75% +(0.26%) + + + + +os.linux.tls.initStaticTLS->os.linux.tls.setThreadPointer + + +0.75% + + + + +os.linux.tls.initTLS->memcpy + + +1.37% + + + + +os.linux.tls.initTLS->mem.alignForward__anon_3355 + + +6.12% + + + + +os.linux.tls.initTLS->memset + + +4.16% + + + + +os.linux.tls.prepareTLS->memset + + +0.54% + + + + +os.linux.tls.setThreadPointer->debug.assert + + +0.24% + + + + +os.maybeIgnoreSigpipe->os.sigaction + + +5.77% + + + + +os.setrlimit + +zig-hi +os.setrlimit +1.67% +(0.43%) + + + + +os.setrlimit->os.linux.getErrno + + +0.40% + + + + +os.setrlimit->os.linux.setrlimit + + +0.85% + + + + +start.expandStackSize->debug.assert + + +0.24% + + + + +start.expandStackSize->os.getrlimit + + +1.98% + + + + +start.expandStackSize->os.setrlimit + + +1.67% + + + + -- cgit v1.2.3