-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Log when we're calculating statistics or formatting
Helps see which step went wrong and at what point we are right now. So, if say memory blows up or something takes super long it's easier to discern whether that is a benchmark currently running, the statistics calculation or the formatter. #389
- Loading branch information
Showing
9 changed files
with
155 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
defmodule Benchee.Output.ProgressPrinter do | ||
@moduledoc false | ||
|
||
def calculating_statistics(%{print: %{benchmarking: false}}), do: nil | ||
|
||
def calculating_statistics(_config) do | ||
IO.puts("Calculating statistics...") | ||
end | ||
|
||
def formatting(%{print: %{benchmarking: false}}), do: nil | ||
|
||
def formatting(_config) do | ||
IO.puts("Formatting results..") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.