def get_profile(self, profile_count=<NUM_LIT:50>):
from collections import namedtuple<EOL>profile_table_name = "<STR_LIT>"<EOL>value_matrix = [<EOL>[query, execute_time, self.__dict_query_count.get(query, <NUM_LIT:0>)]<EOL>for query, execute_time in six.iteritems(self.__dict_query_totalexectime)<EOL>]<EOL>attr_names = ("<STR_LIT>", "<STR_LIT>", "<STR_LIT:count>")<EOL>con_tmp = connect_memdb()<EOL>try:<EOL><INDENT>con_tmp.create_table_from_data_matrix(<EOL>profile_table_name, attr_names, data_matrix=value_matrix<EOL>)<EOL><DEDENT>except ValueError:<EOL><INDENT>return []<EOL><DEDENT>try:<EOL><INDENT>result = con_tmp.select(<EOL>select="<STR_LIT>".format(*attr_names),<EOL>table_name=profile_table_name,<EOL>extra="<STR_LIT>".format(<EOL>attr_names[<NUM_LIT:0>], attr_names[<NUM_LIT:1>], profile_count<EOL>),<EOL>)<EOL><DEDENT>except sqlite3.OperationalError:<EOL><INDENT>return []<EOL><DEDENT>if result is None:<EOL><INDENT>return []<EOL><DEDENT>SqliteProfile = namedtuple("<STR_LIT>", "<STR_LIT:U+0020>".join(attr_names))<EOL>return [SqliteProfile(*profile) for profile in result.fetchall()]<EOL>
Get profile of query execution time.

:param int profile_count:
    Number of profiles to retrieve,
    counted from the top query in descending order by
    the cumulative execution time.
:return: Profile information for each query.
:rtype: list of |namedtuple|
:raises simplesqlite.NullDatabaseConnectionError:
    |raises_check_connection|
:raises simplesqlite.OperationalError: |raises_operational_error|

:Example:
    :ref:`example-get-profile`