def use_valgrind(self, tool, xml, console, track_origins, valgrind_extra_params):
        """
        Use Valgrind.

        :param tool: Tool name, must be memcheck, callgrind or massif
        :param xml: Boolean output xml
        :param console: Dump output to console, Boolean
        :param track_origins: Boolean, set --track-origins=yes
        :param valgrind_extra_params:  Extra parameters
        :return: Nothing
        :raises: AttributeError if invalid tool set.
        """
        self.valgrind = tool
        self.valgrind_xml = xml
        self.valgrind_console = console
        self.valgrind_track_origins = track_origins
        self.valgrind_extra_params = valgrind_extra_params
        if not tool in ['memcheck', 'callgrind', 'massif']:
            raise AttributeError("Invalid valgrind tool: %s" % tool)
Use Valgrind.

        :param tool: Tool name, must be memcheck, callgrind or massif
        :param xml: Boolean output xml
        :param console: Dump output to console, Boolean
        :param track_origins: Boolean, set --track-origins=yes
        :param valgrind_extra_params:  Extra parameters
        :return: Nothing
        :raises: AttributeError if invalid tool set.