Skip to content
Open
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
15 changes: 14 additions & 1 deletion src/Badoo/LiveProfiler/LiveProfiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ class LiveProfiler
protected $is_enabled = false;
/** @var array */
protected $last_profile_data = [];

/** @var array[] */
protected $ignored_functions = ['ignored_functions' => []];

/**
* LiveProfiler constructor.
* @param string $connection_string_or_path
Expand Down Expand Up @@ -494,6 +496,17 @@ public function setDataPacker($DataPacker)
return $this;
}

/**
* @param array $ignore
* @return $this
*/
public function setIgnoredFunctions($ignore)
{
$this->ignored_functions = array("ignored_functions" => $ignore);

return $this;
}

/**
* @return array
*/
Expand Down