- Go Systems Programming
- Mihalis Tsoukalos
- 157字
- 2021-07-02 18:08:03
Analysing software
There are times that a program fails for some unknown reason or does not perform well, and you want to find out why without having to rewrite your code and add a plethora of debugging statements. So, this section will talk about strace(1) and dtrace(1) , which allow you to see what is going on behind the scenes when you execute a program on a Unix machine. Although both tools can work with the go run command, you will get less unrelated output if you first create an executable file using go build and use this file. This mainly occurs because go run makes temporary files before actually running your Go code, and you want to debug the actual program, not the compiler used to build the program.
Remember that although dtrace(1) is more powerful than strace(1) and has its own programming language, strace(1) is more versatile for watching the system calls a program makes.
- CMDB分步構(gòu)建指南
- arc42 by Example
- 深入淺出Prometheus:原理、應(yīng)用、源碼與拓展詳解
- 用Flutter極速構(gòu)建原生應(yīng)用
- 面向?qū)ο蟪绦蛟O(shè)計(jì)(Java版)
- Java軟件開發(fā)基礎(chǔ)
- Getting Started with NativeScript
- 前端HTML+CSS修煉之道(視頻同步+直播)
- Mastering JavaScript Design Patterns(Second Edition)
- INSTANT Sinatra Starter
- 學(xué)習(xí)OpenCV 4:基于Python的算法實(shí)戰(zhàn)
- JavaScript應(yīng)用開發(fā)實(shí)踐指南
- 虛擬現(xiàn)實(shí)建模與編程(SketchUp+OSG開發(fā)技術(shù))
- INSTANT LESS CSS Preprocessor How-to
- Beginning C# 7 Hands-On:The Core Language