Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/mix/lib/mix/tasks/profile.cprof.ex
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ defmodule Mix.Tasks.Profile.Cprof do
* `:module` - filters out any results not pertaining to the given module

"""
@spec profile((-> any()), keyword()) :: any()
@spec profile((-> result), keyword()) :: result when result: any()
def profile(fun, opts \\ []) when is_function(fun, 0) do
Mix.ensure_application!(:tools)
{return_value, num_matched_functions, analysis_result} = profile_and_analyse(fun, opts)
Expand Down
2 changes: 1 addition & 1 deletion lib/mix/lib/mix/tasks/profile.eprof.ex
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ defmodule Mix.Tasks.Profile.Eprof do
* `:sort` - sort the results by `:time` or `:calls` (default: `:time`)

"""
@spec profile((-> any()), keyword()) :: any()
@spec profile((-> result), keyword()) :: result when result: any()
def profile(fun, opts \\ []) when is_function(fun, 0) do
Mix.ensure_application!(:tools)
{return_value, results} = profile_and_analyse(fun, opts)
Expand Down
2 changes: 1 addition & 1 deletion lib/mix/lib/mix/tasks/profile.fprof.ex
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ defmodule Mix.Tasks.Profile.Fprof do
usage for larger workloads.

"""
@spec profile((-> any()), keyword()) :: any()
@spec profile((-> result), keyword()) :: result when result: any()
def profile(fun, opts \\ []) when is_function(fun, 0) do
Mix.ensure_application!(:runtime_tools)
Mix.ensure_application!(:tools)
Expand Down