1. 17 Jun, 2015 7 commits
  2. 16 Jun, 2015 15 commits
  3. 15 Jun, 2015 16 commits
  4. 14 Jun, 2015 2 commits
    • Alex Schroeder's avatar
      wiki article: remove "flag" import from the code · 44618b28
      Alex Schroeder authored
      When reading along the article, the extra code added in the final
      version is not explained. The main function calls flag.Parse(), for
      example, which will cause an error, unless the readers looks at the
      entirety of final.go to see the import added.
      
      The file shown to the users no longer has the extra flags. The testing
      code is now in a patch that gets applied to final.go in order to create
      final-test.go. This is the file that will be used to test the code,
      matching final.go as much as possible.
      
      Change-Id: I022f5f6c88e107c8ba5623661d74a8d260d05266
      Reviewed-on: https://go-review.googlesource.com/11061Reviewed-by: default avatarAndrew Gerrand <adg@golang.org>
      44618b28
    • Dmitry Vyukov's avatar
      cmd/trace: fix panic in goroutine profile · 202de394
      Dmitry Vyukov authored
      In generateTrace we check that event timestamp is within the interesting range.
      Then later in traceContext.time we double check event time.
      However, for some events (e.g. emitSlice) we convert time of ev.Link (slice end) rather than ev itself (slice begin).
      Slice end can be outside of the interesting time range, and so traceContext.time crashes.
      Remove the check in traceContext.time, check in generateTrace loop is sufficient.
      
      Change-Id: If94e93b5653c5816c0a8dcdd920f15df97616835
      Reviewed-on: https://go-review.googlesource.com/11100Reviewed-by: default avatarAndrew Gerrand <adg@golang.org>
      202de394