I was looking through this paper, in which they use HTMLUnit to "measure the number of invocations of JavaScript functions that can be used to define new strings (such as substring, and fromCharCode), and the number of string uses (such as write operations and eval calls)."
I am new to HTMLUnit, and I can't seem to figure out how one can directly see the functions that a website is using and count which ones are substring, eval etc.? How exactly can this be done?