function perfmon_test_db_prepare in Performance monitor 7
Same name and namespace in other branches
- 8 perfmon.module \perfmon_test_db_prepare()
Prepare to test mysql.
3 calls to perfmon_test_db_prepare()
- perfmon_test_db_read in ./
perfmon.inc - Test db read operations.
- perfmon_test_db_update in ./
perfmon.inc - Test db update operations.
- perfmon_test_db_write in ./
perfmon.inc - Test db write operations.
File
- ./
perfmon.inc, line 238 - Stand-alone perfmon test system.
Code
function perfmon_test_db_prepare($testname, $count) {
for ($i = 0; $i < $count; $i++) {
db_insert('perfmon_test')
->fields(array(
'id' => $i,
'testname' => 'dbtest',
'data' => 'aaaaaaaaaaaaaaaaaaaaa',
))
->execute();
}
}