protected fun recordScalar(stores: List<String>, category: String, name: String, lifetime: Lifetime, value: ScalarType): Unit
Helper function for the derived classes. It can be used to record simple scalars to the internal storage.