diff --git a/app/src/main/java/org/mozilla/fenix/perf/ProfilerViewModel.kt b/app/src/main/java/org/mozilla/fenix/perf/ProfilerViewModel.kt new file mode 100644 index 0000000000..290acc05ed --- /dev/null +++ b/app/src/main/java/org/mozilla/fenix/perf/ProfilerViewModel.kt @@ -0,0 +1,21 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +package org.mozilla.fenix.perf + +import androidx.lifecycle.LiveData +import androidx.lifecycle.MutableLiveData +import androidx.lifecycle.ViewModel + +class ProfilerViewModel : ViewModel() { + var isProfilerActive : MutableLiveData = MutableLiveData() + + fun getProfilerState(): LiveData { + return isProfilerActive + } + + fun setProfilerState(isActive: Boolean){ + isProfilerActive.value = isActive + } +} \ No newline at end of file