Quantification of the amount of analgesic drug required during a painful procedure such as surgery. The trait is Experimental Factor Ontology term EFO_0008544 (analgesia requirement measurement).