1 // Test that the lldb command `statistics` works. 2 3 int main(void) { 4 int patatino = 27; 5 //%self.expect("statistics disable", substrs=['need to enable statistics before disabling'], error=True) 6 //%self.expect("statistics enable") 7 //%self.expect("statistics enable", substrs=['already enabled'], error=True) 8 //%self.expect("expr patatino", substrs=['27']) 9 //%self.expect("statistics disable") 10 //%self.expect("statistics dump", substrs=['expr evaluation successes : 1', 'expr evaluation failures : 0']) 11 //%self.expect("frame var", substrs=['27']) 12 //%self.expect("statistics enable") 13 //%self.expect("frame var", substrs=['27']) 14 //%self.expect("statistics disable") 15 //%self.expect("statistics dump", substrs=['frame var successes : 1', 'frame var failures : 0']) 16 17 return 0; 18 } 19