# add some timing diagnostics · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/e0050af293146a38e2122413196e66f73d90f2e0)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: e0050af293146a38e2122413196e66f73d90f2e0

Requested commit: e0050af293146a38e2122413196e66f73d90f2e0

Commit: e0050af293146a38e2122413196e66f73d90f2e0

Tree: 3da86e1e696d8452e3af47e0cad2e218b5d094c6

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

````
add some timing diagnostics

pass --enable-timing-info to print a nice table like this:

```
                Name       Start         End    Duration     Percent
          Initialize      0.0000      0.0000      0.0000      0.0001
   Semantic Analysis      0.0000      0.0421      0.0420      0.2109
     Code Generation      0.0421      0.0620      0.0200      0.1003
    LLVM Emit Object      0.0620      0.1852      0.1231      0.6180
  Build Dependencies      0.1852      0.1974      0.0122      0.0615
           LLVM Link      0.1974      0.1993      0.0018      0.0093
         Generate .h      0.1993      0.1993      0.0000      0.0000
               Total      0.0000      0.1993      0.1993      1.0000
```

````

## Parents

- [4cc2ea14214434297d01c1c89e9308c5c332b0fb](https://git.cafe/gitcafe/zig/commit/4cc2ea14214434297d01c1c89e9308c5c332b0fb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/e0050af293146a38e2122413196e66f73d90f2e0?format=markdown)
