getPerformanceDate - problem

Hello;)
I have a problem with getPerformanceDate.
Even using the code from the appium.io page:
List <List > performanceData = driver.getPerformanceData (“my.app.package”, “cpuinfo”, 5);
getPerformanceData is underlined by Eclipse and the message "The method getPerformanceData (String, String, int) is undefined for the type AppiumDriver " appears.

Should I use AndroidDriver? or do I miss any libraries? The method has been changed? Is there another way to check this data?
I decided to write this short post because none of the guides are up to date.

Thank you for any help