Exemple #1
0
        /// <summary>
        /// Returns the number of times the function has been called in all the data.
        /// </summary>
        /// <param name="function">The address of the function in question.</param>
        public int getCallCount(uint function)
        {
            // Perform the search
            oSingleDataSelecter selecter = new oSingleDataSelecter(function);

            return(data.FindAll(selecter.isFunctionAddress).Count);
        }
Exemple #2
0
        /// <summary>
        /// Returns the number of times the function has been called in the specified time range.
        /// </summary>
        /// <param name="function">The address of the function in question.</param>
        /// <param name="endTime">Time in seconds at the end time of the region.</param>
        /// <param name="duration">Duration in seconds of the region.</param>
        public int getCallCount(uint function, double endTime, double duration)
        {
            // Extract the data range
            List <oSingleData> dataToProcess = getDataRange(endTime, duration);

            // Perform the search
            oSingleDataSelecter selecter = new oSingleDataSelecter(function);

            return(dataToProcess.FindAll(selecter.isFunctionAddress).Count);
        }