ProfileRow#

class scikitplot._ipymagic.ProfileRow(ncalls, primitive_calls, tottime, cumtime, file, line, function)[source]#

One function of a profile.

Parameters:
ncallsint

Calls, recursive ones included.

primitive_callsint

Calls that were not recursive.

tottimefloat

Seconds in the function itself.

cumtimefloat

Seconds in the function and everything it called.

filestr

Source file ("~" for built-ins).

lineint

First line.

functionstr

Function name.

Parameters:
cumtime: float[source]#
file: str[source]#
function: str[source]#
line: int[source]#
property location: str#

file:line(function), as pstats writes it.

Type:

Where the function is

ncalls: int[source]#
primitive_calls: int[source]#
to_dict()[source]#

Return the row as plain data.

Returns:
dict

Every field.

Return type:

dict[str, Any]

tottime: float[source]#