To provide an image forming apparatus capable of executing a charging processing such as prior charging by using history information timely.
The image forming apparatus has software for executing image formation processing, divides the software into a plurality of components in accordance with functions, makes a CPU execute each component and makes the components function as a plurality of image processing means. A component including a history block 251 for separating history processing for collecting history information about processing and storing the history information from processing executed by the image processing means and executing the processing separated when processing to be executed by the image processing means is designated, and a history monitoring program 252 for monitoring history information updated by history processing and executing processing for reading the history information at set timing is newly constructed and made to function as history processing means and history monitoring means.