For processor you mean a complex CPU like the intel CPUs, or a PIC? Since we're talking about PICs (mainly) in this forum, I'll answer in the case of a PIC (that is still applicable to a CPU, but there might be other parameters to take into account which I could be ignoring).
A simple way to know how much a processor is consuming is to actually measure it at work with a full load (which can even break the component if power consumption is beyond a certain limit).
If that's impossible or you'd like to properly calibrate a power supply before using it, you should consider the case that the oscillator frequency is constant and it's running at the full speed allowed for proper working conditions, the working temperature is constant or it is the maximum temperature that the PIC will be working in, and the output on all pins is constant and at full load (maximum voltage, maximum current allowed). Input pins should not be considered as they are not using current from the PIC power but from an external source, and it does not impact on the power consumption of the PIC itself; any PIC datasheet would usually say the maximum current and voltage (or the power) that a pin can output. If you consider the PIC working in such conditions you'll get a maximum (calculated) amount of power that a PIC could be using. Also, some well made devices can actually allow a bit more power on the output, some other poorly made devices will allow less power on the output; After you've calculated the nominal power consumption you should consider a ±5% to ±10% of error (depending on the accuracy of your calculations).