def generate_heading(self, fun):
        """Generate a heading for the top of the iprofile."""
        if fun is None:
            self.value_cache += "<h3>Summary</h3>"
            return

        try:
            heading = "{} (Calls: {}, Time: {})"
            heading = heading.format(fun.co_name,
                                     self.cprofile_tree[fun]['callcount'],
                                     self.cprofile_tree[fun]['totaltime'])
            heading = html_escape(heading)
            self.value_cache += "<h3>" + heading + "</h3>"
            self.value_cache += ("<p>From file: " +
                                 html_escape(fun.co_filename) + "</p>")
        except __HOLE__:
            self.value_cache += "<h3>" + html_escape(fun) + "</h3>"

        self.value_cache += '<p>'
dataset/ETHPy150Open j-towns/iprofiler/iprofiler.py/IProfile.generate_heading