Amf perflog Work on #4

Not merge yet! I test it tomorrow