[all-commits] [llvm/llvm-project] 3669f0: Refactor TimeProfiler write methods (NFC)

Reid Kleckner via All-commits all-commits at lists.llvm.org
Fri Mar 6 14:44:42 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3669f0ed4f962f253baa1c08256a3660aafbf9f1
      https://github.com/llvm/llvm-project/commit/3669f0ed4f962f253baa1c08256a3660aafbf9f1
  Author: Andrew Monshizadeh <amonshiz at gmail.com>
  Date:   2020-03-06 (Fri, 06 Mar 2020)

  Changed paths:
    M lld/ELF/Driver.cpp
    M llvm/include/llvm/Support/TimeProfiler.h
    M llvm/lib/Support/TimeProfiler.cpp

  Log Message:
  -----------
  Refactor TimeProfiler write methods (NFC)

Added a write method for TimeTrace that takes two strings representing
file names. The first is any file name that may have been provided by the
user via `time-trace-file` flag, and the second is a fallback that should
be configured by the caller. This method makes it cleaner to write the
trace output because there is no longer a need to check file names at the
caller and simplifies future TimeTrace usages.

Reviewed By: modocache

Differential Revision: https://reviews.llvm.org/D74514




More information about the All-commits mailing list