Associating data source information with sampled runtime events allows
identification of system components related to the sampled runtime
events. Code can be optimized from the perspective of system components
and for various architectures. A system provides a data source
indication. The system associates the data source indication with a
corresponding instruction instance. The instruction instance is related
to a sampled runtime event, and the sampled runtime event is associated
with the data source indication. The data source information and
associated sampled runtime event can be supplied for profiling code.