The invention relates to a performance counting device and a
chip, and the performance counting device comprises a performance counting module which is used for receiving at least one
instruction memory address from a
program counter associated with the performance counting module, and according to the at least one
instruction memory address and a pre-configured
instruction memory address interval, counting the at least one instruction
memory address; obtaining a statistical value of a performance
signal of at least one instruction
memory address in the instruction
memory address interval; the storage module is used for storing the statistical value of the performance
signal of the at least one instruction memory address of the performance statistical module; the write-in control module is used for writing the statistical value, obtained by the performance statistical module, of the performance
signal of the at least one instruction memory address into the storage module; and the configuration module is used for configuring an instruction memory address interval of the performance statistics module. According to the method and the device, the configuration flexibility of performance statistics can be improved, performance statistics of a plurality of specified program segments can be realized at the same time on the basis, and
parallel processing of the performance statistics and accurate positioning of the program segments are further realized.